cloud-fan commented on a change in pull request #32391:
URL: https://github.com/apache/spark/pull/32391#discussion_r623568566
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/joins.scala
##########
@@ -376,7 +377,8 @@ trait JoinSelectionHelper {
* dynamic.
*/
private def canBuildLocalHashMapBySize(plan: LogicalPlan, conf: SQLConf):
Boolean = {
- plan.stats.sizeInBytes < conf.autoBroadcastJoinThreshold *
conf.numShufflePartitions
+ plan.stats.sizeInBytes <
+ autoBroadcastJoinThreshold(plan.stats.isAdaptive, conf) *
conf.numShufflePartitions
Review comment:
Let's not touch shuffle hash join for now. I think in AQE we should
check per-partition size to decide if we want to go SHJ or not, instead of
using the old formula.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]