Skip to main content

to_arrow_schema

Function to_arrow_schema 

Source
pub fn to_arrow_schema(
    options: &ArrowOptions<'_>,
    columns: &[(&str, &LogicalType)],
) -> Result<ArrowSchema, ErrorData>
Expand description

Renders a DuckDB schema as an Arrow schema (duckdb_to_arrow_schema).

columns pairs each column’s name with its logical type, in order. The result is a struct schema ("+s") with one child per column — the shape every Arrow consumer expects for a record batch.

§Errors