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

   ## What changes are included in this PR?
   
   An inner join against a unique, contiguous integer build domain has exactly 
one match for each in-range probe key. If the output uses only probe columns 
and there is no residual join filter, use an integer range mask to filter the 
projected batch directly. The existing array map proves coverage and uniqueness 
from its slot and duplicate counts.
   
   For collect-left dynamic filtering, an ascending Int64 membership list can 
also use the existing bounds predicate if the observed endpoints match and 
every adjacent pair differs by one.
   
   ## What is the testing strategy for this PR?
   
   The array-map unit test covers negative keys, both endpoints, out-of-range 
probes, nulls, gaps and duplicates. I also compared query outputs for duplicate 
build keys, missing keys and projections from both sides. The targeted test and 
Clippy for the physical-plan crate passed.
   
   On unchanged TPC-DS Q49 with local SF1 Parquet, three series of 15 
alternating process pairs measured **33.5 → 33.5 ms**, **34 → 33 ms**, and **34 
→ 33 ms**. The third series reversed which arm ran first. An additional 
benchmark-only build toggled the change at runtime to control for binary 
layout. It measured **34 → 33 ms**, with the candidate faster in 16 of 21 
pairs. A baseline-against-itself control measured 34.5 ms for both arms. This 
is a small effect on this fixture.
   
   Each process used ten target partitions, one warmup and four measured Q49 
executions. The reported values are medians of the process medians. All 
measured executions returned the same 32 rows.
   
   ## Are there any user-facing changes?
   
   Eligible physical hash joins use the range mask automatically.
   


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