Thalweg · API reference ← Main docs

to_sdk_schema

Function to_sdk_schema 

Source
pub fn to_sdk_schema(schema: &Schema) -> Result<ArrowSchema, ZerobusSinkError>
Expand description

Rebuild our Arrow-58 schema into the SDK’s Arrow-59 Schema. Only the column types are mapped; the array data never crosses the boundary (it goes as IPC bytes), so this covers the sink-supported scalar/temporal set.

§Errors

ZerobusSinkError::WriteBoundary naming a column whose Arrow type has no supported Zerobus mapping.