Skip to main content

native_to_array_owned

Function native_to_array_owned 

Source
pub fn native_to_array_owned(ty: TypeId, col: NativeColumn) -> Result<ArrayRef>
Expand description

Zero-copy variant of native_to_array for the streaming scan path. It takes ownership of the NativeColumn and, for the fixed-width Int64 / Float64 columns, moves the typed data buffer (and validity buffer when needed) straight into the Arrow array — no memcpy, no per-element builder. Bool / Bytes / Embedding fall back to the by-reference builder.