MCPcopy Create free account
hub / github.com/apache/datafusion / adapt_batch

Method adapt_batch

datafusion/physical-expr-adapter/src/schema_rewriter.rs:621–623  ·  view source on GitHub ↗

Adapt the given record batch to match the target schema. The input batch *must* conform to the source schema used when creating this adapter.

(&self, batch: &RecordBatch)

Source from the content-addressed store, hash-verified

619 /// The input batch *must* conform to the source schema used when
620 /// creating this adapter.
621 pub fn adapt_batch(&self, batch: &RecordBatch) -> Result<RecordBatch> {
622 self.projector.project_batch(batch)
623 }
624}
625
626#[cfg(test)]

Calls 1

project_batchMethod · 0.45