deltalake_core::operations::cast

Function cast_record_batch

Source
pub fn cast_record_batch(
    batch: &RecordBatch,
    target_schema: SchemaRef,
    safe: bool,
    add_missing: bool,
) -> DeltaResult<RecordBatch>
Expand description

Cast recordbatch to a new target_schema, by casting each column array