adriangb commented on code in PR #15301: URL: https://github.com/apache/datafusion/pull/15301#discussion_r2022103675
########## datafusion/physical-plan/src/topk/mod.rs: ########## @@ -186,6 +235,90 @@ impl TopK { Ok(()) } + fn calculate_dynamic_filters( + thresholds: Vec<ColumnThreshold>, + ) -> Result<Option<Arc<dyn PhysicalExpr>>> { + // Create filter expressions for each threshold + let mut filters: Vec<Arc<dyn PhysicalExpr>> = Review Comment: What would we initialize it to when we've got 0 items in the TopK heap? -- 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