LuciferYang opened a new pull request, #13712:
URL: https://github.com/apache/gluten/pull/13712

   ## What changes are proposed in this pull request?
   
   For a broadcast anti join with a filter, the native hash table build drops 
the build rows that are null in any build column the filter references, if it 
is told the filter is null-intolerant. That was decided by 
`SparkShims.isNullIntolerant(condition)`, which only looks at the root, so 
`probe.x > coalesce(build.y, 0)` dropped the rows with a null `y` although they 
match, and the anti join returned probe rows it should have removed.
   
   The flag is now true only when a null in each of those build columns makes 
the whole condition null, following null-intolerant expressions down to the 
column, the way Spark infers `IsNotNull` constraints. Both places that compute 
it, the executor-side and the driver-side hash table build, use the new check.
   
   This reproduces on v1.8.0-rc1 with default settings, so it should block 
1.8.0.
   
   Fixes #13711.
   
   ## How was this patch tested?
   
   Added to `VeloxHashJoinSuite`: anti joins with `coalesce` and `nvl` in the 
filter, with the driver-side build on and off, check the results. They fail 
without the fix. A unit test checks the new rule on conditions with 
null-intolerant and null-tolerant paths to the build columns.
   
   ## 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]

Reply via email to