Xuanwo opened a new pull request, #25574:
URL: https://github.com/apache/datafusion/pull/25574

   ## Which issue does this PR close?
   
   - Part of #318.
   - Follow-up to #24801. This draft is temporarily stacked on that PR; the new 
change is commit `a5a9c1473`.
   
   ## Rationale for this change
   
   When a filter selects one ASOF equality-key group on the left, rows in other 
right-side groups cannot match any surviving left row. The broadcast join still 
sorts and retains those right rows unless the same key filter is applied to the 
right input.
   
   ## What changes are included in this PR?
   
   - Mirror a pushed `left_key = literal` predicate to the corresponding right 
key when both join keys are direct columns of the same type.
   - Keep the original left filter and ASOF's null-padding behavior unchanged. 
Other predicate shapes and coerced or expression-based keys are not inferred.
   - Add result and plan coverage in `asof_join.slt`, plus a keyed selective 
workload as ASOF benchmark Q09.
   
   ## What is the testing strategy for this PR?
   
   The SLT cases check the mirrored plan, matching and unmatched results, a 
right-side `IS NULL` filter, and a left disjunction that must not prune the 
right input. Q09 runs the user-visible query with 1M rows per side across 10K 
groups, selecting one group.
   
   ## Are there any user-facing changes?
   
   No API or result changes. Eligible ASOF joins can sort and retain fewer 
right-side rows.
   


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