polars_arrow::compute::take::primitive

Function take_primitive_unchecked

Source
pub unsafe fn take_primitive_unchecked<T: NativeType>(
    arr: &PrimitiveArray<T>,
    indices: &IdxArr,
) -> PrimitiveArray<T>
Available on crate feature compute_take only.
Expand description

Take kernel for single chunk with nulls and arrow array as index that may have nulls.

ยงSafety

caller must ensure indices are in bounds