Function rerun_c::arrow_utils::arrow2_array_from_c_ffi

source ·
unsafe fn arrow2_array_from_c_ffi(
    array: &ArrowArray,
    datatype: DataType,
) -> Result<Box<dyn Array>, CError>
Expand description

Converts a C-FFI arrow array into a Rust component batch, taking ownership of the underlying arrow data.

Safety: This must only be ever called once for a given ffi array. Conceptually, this takes ownership of the array, i.e. this should really be a move operation, but since we have typically pass c arrays (ptr + length), we can’t actually move out data.