Function from_arrow_array_with_len

Source
pub fn from_arrow_array_with_len<A>(
    array: A,
    len: usize,
    nullable: bool,
) -> VortexResult<ArrayRef>
Expand description

Convert an Arrow array to an Array with a specific length. This is useful for compute functions that delegate to Arrow using Datum, which will return a scalar (length 1 Arrow array) if the input array is constant.

Panics if the length of the array is not 1 and also not equal to the expected length.