Skip to main content

rivet_type_to_arrow

Function rivet_type_to_arrow 

Source
pub fn rivet_type_to_arrow(t: &RivetType) -> Option<DataType>
Expand description

Map RivetType → [arrow::DataType].

This is the only place where Arrow types are constructed from Rivet types. Source drivers must not duplicate this logic; they go through TypeMapping::from_source instead.

Returns None for RivetType::Unsupported — the policy layer (Chunk 4) is responsible for either failing the run or rewriting the RivetType into something supported (e.g. Unsupported -> String).