Skip to main content

record_batch_to_values

Function record_batch_to_values 

Source
pub fn record_batch_to_values(
    batch: &RecordBatch,
) -> Result<Vec<Value>, FaucetError>
Expand description

Decode a RecordBatch into JSON objects (one per row).

Uses arrow-json’s array writer with explicit nulls enabled, so a null-valued column is emitted as "key": null rather than omitted — without this a SELECT *-style identity would silently delete every explicit-null field (audit #321 H6). An empty batch returns an empty Vec.