adriangb commented on code in PR #21674:
URL: https://github.com/apache/datafusion/pull/21674#discussion_r3093233786


##########
benchmarks/src/sort_pushdown.rs:
##########
@@ -159,7 +159,11 @@ impl RunOpt {
     async fn benchmark_query(&self, query_id: usize) -> 
Result<Vec<QueryResult>> {
         let sql = self.load_query(query_id)?;
 
-        let config = self.common.config()?;
+        let mut config = self.common.config()?;
+        // Enable filter pushdown so TopK's dynamic filter is pushed to the
+        // parquet reader for late materialization — only sort-column rows
+        // pass the filter, non-sort columns are skipped for filtered rows.
+        config.options_mut().execution.parquet.pushdown_filters = true;

Review Comment:
   Does this enable it for all benchmarks? Generally we control this on a 
per-run basis.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to