Dandandan opened a new pull request, #27637: URL: https://github.com/apache/datafusion/pull/27637
## Rationale for this change A small build with a few hundred integer keys spread across a much larger range can miss the dense array-map threshold. Probing a large input then hashes every key. TPC-H Q17 is a workload of interest. ## What changes are included in this PR? Add a two-level bitmap to the integer join map. Prefix counts map each present key to its original build row. The builder admits 64 through 4,096 rows and a bounded domain only when its estimated allocation fits the ordinary hash map budget. It checks uniqueness while building and releases its reservation on fallback. Existing probe, membership-filter and join-output code consumes the map. ## What is the testing strategy for this PR? Physical join unit tests cover sparse admission, row indices, signed keys crossing zero, NULL rows, misses, duplicates and memory reservations. The benchmark request is intended to establish the effect on upstream TPC-H and check dense-key and ordinary hash joins for regressions. ## Are there any user-facing changes? Eligible integer hash joins can use the compact map automatically. SQL and configuration are unchanged. -- 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]
