I am trying to generate a table in atoti using the standard method:
table = session.read_pandas( DF, keys = ["col1",...."coln"], table_name = "My_Table")
However, it is throwing me this error related to reading one column which consists of numpy arrays where the values in the array are floats.
The full error reads as follows:
AtotiJavaException: Cannot make an array type non nullable. Field Type : FieldType(dataType=156032 -> Nullable double[], dataClass=class [D, defaultValueHolder=MultiTypeCell{codec=NULL, value=null})
Not 100% sure as your code is incomplete but you're probably getting this error because you're trying to add your array column to the keys of the table.
However:
Note: starting from atoti 0.7.0, a column is considered nullable if and only if
column.default_value is None.For example, this works:
but replacing
keys=["id"]withkeys=["id", "array"]will lead to theCannot make an array type non nullableerror.