duckdb_data_chunk_from_arrow

Function duckdb_data_chunk_from_arrow 

Source
pub unsafe extern "C" fn duckdb_data_chunk_from_arrow(
    connection: duckdb_connection,
    arrow_array: *mut ArrowArray,
    converted_schema: duckdb_arrow_converted_schema,
    out_chunk: *mut duckdb_data_chunk,
) -> duckdb_error_data
Expand description

Transforms an Arrow array into a DuckDB data chunk. The data chunk will retain ownership of the underlying Arrow data.

@param connection The connection to get the transformation settings from. @param arrow_array The input Arrow array. Data ownership is passed on to DuckDB’s DataChunk, the underlying object does not need to be released and won’t have ownership of the data. @param converted_schema The Arrow converted schema with extra information about the arrow types. @param out_chunk The resulting DuckDB data chunk. Must be destroyed by duckdb_destroy_data_chunk. @return The error data. Must be destroyed with duckdb_destroy_error_data.