Skip to content

JS API Pass the "original" type as another param when column is converted to preview #3358

@mofojed

Description

@mofojed

Right now if you create a table with columns of array type, you get a column that is converted to String type for the client, e.g.:

from deephaven import empty_table

source = empty_table(10).update(formulas=["X = ii"])
result = source.update(formulas=["A = X_"])

Results in a column with type String, that includes in the description that it is a "preview" column:
image

This preview mechanism allows the client to treat complex/unknown data types as strings and display them, which is nice, but in some cases the client may want to have knowledge of what the original type was as well (such as #2102), or even just know that it is being implicitly converted.

Add the original type to the Column object that is passed to the client.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions