Skip to main content

align_batch

Function align_batch 

Source
pub fn align_batch(
    batch: &RecordBatch,
    schema: &SchemaRef,
) -> Result<RecordBatch>
Expand description

Casts and reorders a batch to the table schema by column name. Missing nullable columns are filled with nulls; extra columns are an error (add them to the schema first).