pub fn decode_batch_to_data(
metadata: &HashMap<String, String>,
batch: RecordBatch,
allow_custom_fallback: bool,
) -> Result<Vec<Data>>Expand description
Decodes a RecordBatch to Data objects based on metadata.
Supports both standard data types and custom data types when allow_custom_fallback
is true (e.g. when decoding files under custom/). When false, unknown type names
produce an error instead of attempting custom decode.
ยงErrors
Returns an error if decoding fails or the type is unknown (and custom fallback not allowed).