adriangb commented on code in PR #15769: URL: https://github.com/apache/datafusion/pull/15769#discussion_r2052753333
########## 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 { Review Comment: The current behavior is not documented anywhere, I tried to match the existing tests: https://github.com/apache/datafusion/blob/9730404028a91a7fe875ea3f88bafdbcb305ae6c/datafusion/sqllogictest/test_files/parquet_filter_pushdown.slt#L44-L88 -- 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