pub fn to_arrow_preferred(array: &dyn Array) -> VortexResult<ArrayRef>
Expand description
Convert a Vortex array to an Arrow array with the encoding’s preferred DataType
.
For example, a VarBinArray
will be converted to an Arrow VarBin
array, instead of the
canonical VarBinViewArray
.
Warning: do not use this to convert a Vortex crate::stream::ArrayStream
since each array
may have a different preferred Arrow type. Use to_arrow
instead.