Expand description
SchemaAdapter
and SchemaAdapterFactory
to adapt file-level record batches to a table schema.
Adapter provides a method of translating the RecordBatches that come out of the physical format into how they should be used by DataFusion. For instance, a schema can be stored external to a parquet file that maps parquet logical types to arrow types.
Structs§
- Default
Schema Adapter Factory - Default
SchemaAdapterFactory
for mapping schemas. - Schema
Mapping - The SchemaMapping struct holds a mapping from the file schema to the table schema and any necessary type conversions.
Traits§
- Schema
Adapter - Creates
SchemaMapper
s to map file-levelRecordBatch
es to a table schema, which may have a schema obtained from merging multiple file-level schemas. - Schema
Adapter Factory - Factory for creating
SchemaAdapter
- Schema
Mapper - Maps, columns from a specific file schema to the table schema.