Skip to main content

values_to_record_batch

Function values_to_record_batch 

Source
pub fn values_to_record_batch(
    records: &[Value],
    schema: Arc<Schema>,
) -> Result<RecordBatch, FaucetError>
Expand description

Encode a slice of JSON records into a single RecordBatch against schema.

Returns an empty batch if records is empty.