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
DuckDbErrorType::InvalidInputif a name contains an interior NUL byte, sinceDuckDBreads names as C strings.DuckDbErrorType::OutOfRangeif there are more columns thanidx_tcan hold.- Whatever
DuckDBreports for a type it cannot render as Arrow.