arrow_flight::utils

Function flight_data_to_arrow_batch

Source
pub fn flight_data_to_arrow_batch(
    data: &FlightData,
    schema: SchemaRef,
    dictionaries_by_id: &HashMap<i64, ArrayRef>,
) -> Result<RecordBatch, ArrowError>
Expand description

Convert FlightData (with supplied schema and dictionaries) to an arrow RecordBatch.