Skip to main content

import_array_stream

Function import_array_stream 

Source
pub unsafe fn import_array_stream(
    stream: *mut ArrowArrayStream,
) -> (Vec<Arc<Array>>, Field)
Expand description

Consumes an ArrowArrayStream that yields plain arrays and returns the imported arrays along with the field metadata.

Uses the zero-copy import path since each yielded array is independently owned. The stream schema is kept alive for the duration of the import so that dictionary-encoded arrays can reference it directly, avoiding the need to reconstruct synthetic schemas per chunk.

ยงSafety

stream must be a valid, non-null pointer to an initialised ArrowArrayStream.