wirybeaver opened a new pull request, #2909:
URL: https://github.com/apache/datafusion-ballista/pull/2909

   # Which issue does this PR close?
   
   Implements Task 5 of #2700.
   
   # Rationale for this change
   
   In the [TPC-DS SF100 results for 
#2749](https://github.com/apache/datafusion-ballista/pull/2749#issuecomment-7050436802),
 runtime filtering increased median latency for Q37 and Q82. In Q82, the 
broadcast probe hashed every inventory row before a cheap quantity range and a 
join against 70 build rows.
   
   # What changes are included in this PR?
   
   For a same-stage broadcast probe, AQE places `RuntimeFilterApplyExec` 
immediately below the lowest costly `FilterExec` on the eligible scan path. 
Cheaper filters below that point run first. A broadcast probe with only cheap 
predicates skips the apply. The planner uses six non-leaf expression nodes as a 
heuristic for predicate cost.
   
   An undecided staged build can still produce a summary for partitioned 
fallback, where filtering the probe saves shuffle work.
   
   # Are there any user-facing changes?
   
   With `ballista.planner.runtime_filter.enabled = true`, the placement of 
runtime filters in broadcast probe plans can change.
   
   ## Test
   
   The distributed join test compares results with filtering enabled and 
disabled, including NULL-safe equality. Its execution plan confirms that a 
filter was bound and pruned rows. A local TPC-H Q19 SF10 check also matched 
results and reported 59.60 million rows pruned. The SF100 latency impact on Q37 
and Q82 is still open.
   


-- 
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