You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "milenkovicm (via GitHub)" <gi...@apache.org> on 2026/01/09 13:26:51 UTC

[I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

milenkovicm opened a new issue, #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   There is great push in DataFusion community to support `DynamicFilters`, looks like there are [some good query improvements](https://datafusion.apache.org/blog/2025/09/10/dynamic-filters/) when dynamic filters are used. 
   
   I'm not sure if they would improve ballista execution due to stage execution but at least we could investigate if they will yield any benefits for ballista
   
   **Describe the solution you'd like**
   
   It would be great if we could some effort to investigate if shuffle read would have any benefits of it.
   
   - try to integrate dynamic filters with shuffle read to start with 
   - benchmark benefits (if any) 
   - provide road forward 
   
   **Describe alternatives you've considered**
   
   
   **Additional context**
   
   


-- 
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-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "Huy1Ng (via GitHub)" <gi...@apache.org>.
Huy1Ng commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-3766327789

   At the current stage, dynamic filter only work in **a single task** . Let' say you have cluster with 1 scheduler and 1 executor. 
   You make this query "select * from line_items sort by line_id asc". The schedule plans 2 task, and send to the sole executor. Each task will be able to leverage the new threshold it found in TopK to reduce number of rows scan upstream, *but these tasks cannot share this information to each other*. 
   
   My approach is to solve this local problem with by having tasks on a single executor share this dynamic filter with each others. Then we can proceed to look for ways to sync this formation across the network boundary.


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "milenkovicm (via GitHub)" <gi...@apache.org>.
milenkovicm commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-3767270050

   I'm not sure we should share them between executors, it would get just too complex.
   
   perhaps if we focus:
   
   - could we use them per partition ?
   - could we push them to shuffle reader to remove unneeded data from shuffle ?
   - could we push them across to flight server to remove unneeded data before transport (in case of non block transport) 
   
   we can drop this task if it does not make any sense and focus on something else, please do not spend too much time its just investigation 
   


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "milenkovicm (via GitHub)" <gi...@apache.org>.
milenkovicm commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-3728914010

   @Huy1Ng would you be interested in having a look at this ?


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "milenkovicm (via GitHub)" <gi...@apache.org>.
milenkovicm commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-3777395488

   thanks @Dandandan, help with the direction would be appreciated 


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-3776666052

   One case where it works well is in broadcasted hash join (collect left mode), as it collects the build side to each executor, it can also push down the filter / hash table to the scan.


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "Huy1Ng (via GitHub)" <gi...@apache.org>.
Huy1Ng commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-3766315015

   might need this feature: https://github.com/apache/datafusion/issues/18296


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Investigate use of `DynamicFilters` in ballista [datafusion-ballista]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #1375:
URL: https://github.com/apache/datafusion-ballista/issues/1375#issuecomment-4887070301

   A couple of concrete data points from SF100 TPC-H benchmarking that may help scope this:
   
   **Dynamic filter pushdown is currently explicitly disabled in Ballista.** `ballista/core/src/extension.rs:817` sets:
   
   ```rust
   .set_bool("datafusion.optimizer.enable_dynamic_filter_pushdown", false)
   ```
   
   So the first step here is likely understanding *why* it's off (presumably because a dynamic filter is computed at runtime on one node and can't cross a serialized stage boundary to reach the probe-side scan on another node) and what it would take to make it survive distributed planning/serialization — which lines up with the "integrate with shuffle read" goal above.
   
   **Why it's worth it — where Ballista currently loses.** In a SF100 comparison (2 executors × 8 slots), properly-parallelized Ballista (`target_partitions=32`, 552 s) roughly matches vanilla Spark (593 s) and trails Comet (340 s). Breaking it down per query, Ballista actually *wins* many queries but loses the **join/scan-heavy** ones — Q7 (~2.5×), Q14 (~2.3×), Q19 (~2.3×), Q20 (~2.0×). Those are precisely the queries a runtime/dynamic join filter (pushing the build-side hash/min-max down to the probe-side scan) targets, so this is likely one of the higher-ROI planner gaps for closing the Ballista→Comet distance.
   
   Happy to help benchmark before/after on those specific queries once there's something to try.
   


-- 
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-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org