wangyum opened a new pull request #33465:
URL: https://github.com/apache/spark/pull/33465


   ### What changes were proposed in this pull request?
   
   Add a new rule to deduplicate the right side of left semi/anti join if it 
cannot be planed as broadcast hash join and there are many duplicate values.
   
   ### Why are the changes needed?
   
   Improve query performance.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test and TPC-DS benchmark test.
   
   SQL | Before this PR(Seconds) | After this PR(Seconds)
   -- | -- | --
   q10 | 15  | 10
   q14a | 174 | 78
   q35 | 34 | 23
   q69 | 14 | 8
   q83 | 38 | 26


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