adriangb commented on code in PR #15769: URL: https://github.com/apache/datafusion/pull/15769#discussion_r2052755948
########## datafusion/datasource-parquet/src/source.rs: ########## @@ -589,4 +559,49 @@ impl FileSource for ParquetSource { } } } + + fn try_pushdown_filters( + &self, + fd: FilterDescription, + config: &datafusion_common::config::ConfigOptions, + ) -> datafusion_common::Result<FilterPushdownResult<Arc<dyn FileSource>>> { + let Some(file_schema) = self.file_schema.clone() else { + return Ok(filter_pushdown_not_supported(fd)); + }; + let config_pushdown_enabled = config.execution.parquet.pushdown_filters; + let table_pushdown_enabled = self.pushdown_filters(); + if table_pushdown_enabled || config_pushdown_enabled { + let mut conf = self.clone(); Review Comment: It's the pattern used everywhere else but I'll change it -- 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