Skip to main content

build_arrow_field

Function build_arrow_field 

Source
pub fn build_arrow_field(mapping: &TypeMapping) -> Option<Field>
Expand description

Build an arrow::Field from a TypeMapping, attaching the standard metadata keys ([META_NATIVE_TYPE], [META_LOGICAL_TYPE], [META_FIDELITY]).

Returns None if the mapping has no resolved Arrow type (i.e. the RivetType is Unsupported and no policy has rewritten it). Callers must surface this as a type-policy decision, not as a panic.