pub trait SchemaMapper:
Debug
+ Send
+ Sync {
// Required methods
fn map_batch(&self, batch: RecordBatch) -> Result<RecordBatch>;
fn map_column_statistics(
&self,
file_col_statistics: &[ColumnStatistics],
) -> Result<Vec<ColumnStatistics>>;
}๐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>
๐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>
Adapts a RecordBatch to match the table_schema.
Sourcefn map_column_statistics(
&self,
file_col_statistics: &[ColumnStatistics],
) -> Result<Vec<ColumnStatistics>>
๐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>>
Adapts file-level column Statistics to match the table_schema.