Open radeusgd opened 1 year ago
? Allow
auto_value_types
to select a more specific type in aMixed
column ifMeta.type_of
all values in a given column (excludingNothing
probably) yields the same type.
cc: @jdunkerley do you think we want auto_value_types
trying to guess the Enso_Object
type? IMO this could be nice.
Idea: Use Meta.type_of
to identify Enso type. When there are different types, unify to Any
?
In the in-memory Table backend, we can store any Enso object in a Column. Currently, such a column gets a
Mixed
datatype.To allow for more precise types, we want to introduce the following
Value_Type
variant:If the
type
is set to some specific Enso Type, the column will ensure that only values of that type are stored within it.Enso_Object
variant.Column.from_vector
,map
,zip
can check that the results fit this value type (using theis_a
check).cast
operation to convert aMixed
column to a specific type, if all values satisfy it.auto_value_types
to select a more specific type in aMixed
column ifMeta.type_of
all values in a given column (excludingNothing
probably) yields the same type.