Open jorgecarleitao opened 3 years ago
@andygrove , I was trying to address this in ballista, but I am struggling to encapsulate a ScalarValue that depends on an Array; how are we declaring arrow arrays in the protobuf? I can't find any reference to them.
IMO the roundtrip
ListArray -> Scalar::List -> ListArray
is currently lossy. This happens because theScalar::List
does not encapsulate everything from theListArray
.Examples:
(new) suggested signature:
With this, the second argument stores the original datatype, which allows to recover all the information from
ListArray
, and the first argument is easy to recover and build in both directions:ListArray -> Scalar
: usearray.value(index)
Scalar -> ListArray
: useconcatenate(repeat(inner).take(size))