suremarc commented on code in PR #9593: URL: https://github.com/apache/datafusion/pull/9593#discussion_r1579019362
########## datafusion/core/src/datasource/physical_plan/file_scan_config.rs: ########## @@ -138,12 +138,21 @@ impl FileScanConfig { column_statistics: table_cols_stats, }; - let table_schema = Arc::new( + let projected_schema = Arc::new( Schema::new(table_fields).with_metadata(self.file_schema.metadata().clone()), ); + + let full_table_schema = { Review Comment: I managed to get rid of creating this schema, fortunately -- we can use projection (the `Vec<usize>`) to recover the positions of the statistics in the original schema. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org