LuciferYang opened a new issue, #13828: URL: https://github.com/apache/gluten/issues/13828
When Gluten builds a broadcast hash table itself (`buildHashTableWithTask`, used by both the executor-side and the driver-side build), the fake join it runs gets a placeholder from `makePlaceholderFilter` (`cpp/velox/operators/hashjoin/HashTableTaskBuilder.cc:44`) instead of the real filter. The placeholder reads build columns only when the real filter is null-intolerant in them. Otherwise it is the constant `true` (lines 48-51). Velox 1a094e7ef5 (facebookincubator/velox#18076) is in `dft-2026_11_26` but not in the pinned `dft-2026_11_19`. It removes `canDropDuplicates()`, and `HashBuild::initialize()` now decides from the compiled filter: an anti, left semi filter or left semi project join whose filter is deterministic and reads no build column keeps one row per key and stores only the join keys. Given the constant `true`, HashBuild takes that branch for every semi or anti join whose filter reads build columns but isn't null-intolerant in them, for example `probe.x > build.y OR build.y IS NULL`. The cached table then holds only the keys, while the join's own filter reads `build.y`. The test added in #13710 runs such joins. The JVM side also goes out of sync. A join whose filter reads no build column gets a keys-only table under the new rule, but `BroadcastHashJoinContext.droppedDuplicates` stays false, so `HashTableBuildKey` can't tell that table from a full one built for another join on the same broadcast. I'd give the placeholder a build column whenever the join has a filter (a join key if the real filter reads none), and make it null-intolerant only where it is today. Every join with a filter then keeps duplicates under both the old and the new rule, and `HashTableBuildKey` stays correct without the JVM mirroring Velox's rule. The cost is that the prebuild path doesn't get the speedup from facebookincubator/velox#18076 for filters that read only probe columns. On the pinned Velox this changes no result, so it should land before or together with the bump that brings in 1a094e7ef5 (#13808 for now). This issue was written with the assistance of AI (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]
