File tree Expand file tree Collapse file tree
core/src/datasource/file_format Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ impl FileFormat for ParquetFormat {
385385 } ;
386386
387387 let schema = if self . force_view_types ( ) {
388- Arc :: new ( transform_schema_to_view ( & schema) )
388+ Arc :: new ( transform_schema_to_view ( schema. as_ref ( ) ) )
389389 } else {
390390 schema
391391 } ;
Original file line number Diff line number Diff line change @@ -73,7 +73,10 @@ pub trait FileFormat: Send + Sync + fmt::Debug {
7373 objects : & [ ObjectMeta ] ,
7474 ) -> Result < SchemaRef > ;
7575
76- /// Transform the schema of the provided object. The cost and accuracy of the
76+ /// Transform the schema of the provided object. For example for parquet files:
77+ /// 1. Transform a schema so that any binary types are strings
78+ /// 2. Transform a schema to use view types for Utf8 and Binary
79+ /// Other file formats may have other transformations, but currently only for parquet
7780 async fn transform_schema ( & self , schema : SchemaRef ) -> Result < SchemaRef > ;
7881
7982 /// Infer the statistics for the provided object. The cost and accuracy of the
You can’t perform that action at this time.
0 commit comments