LuciferYang opened a new pull request, #13710: URL: https://github.com/apache/gluten/pull/13710
## What changes are proposed in this pull request? Each executor caches the native hash tables built from a broadcast relation, and every join reusing that broadcast exchange looks them up there. The cache was keyed by `droppedDuplicates` only, so a join could get another join's table: an anti join with a null-intolerant filter drops the build rows that are null in the filter's columns, and a join needing them returned wrong rows. - The cache key now holds what changes the table: dropped duplicates, null awareness, the build columns whose nulls an anti join's filter removes (by position, as a reused exchange renames them), and the bloom filter size. - The table handles are no longer serialized with the relation, and the unused `SerializedBroadcastHashTable.droppedDuplicates` is removed. This reproduces on v1.8.0-rc1 with default settings, so it should block 1.8.0. The driver-side build (`driverSideBroadcastHashTableBuild`, off by default) still shares one table per exchange and is left to a follow-up. Fixes #13709. ## How was this patch tested? Added a test to `VeloxHashJoinSuite`: an anti join with a null-intolerant filter and an anti or semi join that keeps the null build rows share one broadcast exchange, in both orders. It checks the results and that two offloaded joins reuse the exchange. It fails without the fix. ## Was this patch authored or co-authored using generative AI tooling? Yes. Generated-by: Claude Opus. -- 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]
