pub trait SchemaMapper:
Debug
+ Send
+ Sync {
// Required methods
fn map_batch(
&self,
batch: RecordBatch,
) -> Result<RecordBatch, DataFusionError>;
fn map_column_statistics(
&self,
file_col_statistics: &[ColumnStatistics],
) -> Result<Vec<ColumnStatistics>, DataFusionError>;
}๐Deprecated since 52.0.0:
SchemaMapper has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
Expand description
Deprecated: Maps columns from a specific file schema to the table schema.
This trait has been removed. Use PhysicalExprAdapterFactory instead.
See upgrading.md for more details.
Required Methodsยง
Sourcefn map_batch(&self, batch: RecordBatch) -> Result<RecordBatch, DataFusionError>
๐Deprecated since 52.0.0: SchemaMapper has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
fn map_batch(&self, batch: RecordBatch) -> Result<RecordBatch, DataFusionError>
SchemaMapper has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
Adapts a RecordBatch to match the table_schema.
Sourcefn map_column_statistics(
&self,
file_col_statistics: &[ColumnStatistics],
) -> Result<Vec<ColumnStatistics>, DataFusionError>
๐Deprecated since 52.0.0: SchemaMapper has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
fn map_column_statistics( &self, file_col_statistics: &[ColumnStatistics], ) -> Result<Vec<ColumnStatistics>, DataFusionError>
SchemaMapper has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
Adapts file-level column Statistics to match the table_schema.