Skip to main content

from_arrow_columnar

Function from_arrow_columnar 

Source
pub fn from_arrow_columnar(
    array: ArrayRef,
    len: usize,
    nullable: bool,
    ctx: &mut ExecutionCtx,
) -> VortexResult<ArrayRef>
Expand description

Convert an Arrow array to an Array with a specific length, using the provided ExecutionCtx.

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.

The array is imported through the ArrowSession of ctx, so nested extension fields reach their registered import plugins.

ยงError

The provided array must have length len or 1.