wangyum opened a new pull request #26600: [SPARK-29962][SQL] Avoid changing SMJ 
to BHJ if one side is non-shuffle and the other side can be broadcast
URL: https://github.com/apache/spark/pull/26600
 
 
   ### What changes were proposed in this pull request?
   
   This PR makes it avoid changing `SMJ` to `BHJ` if one side is non-shuffle 
and the other side can be broadcast because `SMJ` if faster than `BHJ` in this 
case:
   **BroadcastJoin**:
   
![image](https://issues.apache.org/jira/secure/attachment/12985671/BroadcastJoin.jpeg)
   
   **SortMergeJoin**:
   
![image](https://issues.apache.org/jira/secure/attachment/12985670/SortMergeJoin.jpeg)
   
   
   
   ### Why are the changes needed?
   
   Adaptive query execution should not degrade performance.
   
   ### Does this PR introduce any user-facing change?
   No.
   
   
   ### How was this patch tested?
   Unit test
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to