You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/10/07 14:42:21 UTC

[GitHub] [spark] cloud-fan commented on a diff in pull request #37819: [SPARK-40377][SQL] Allow customize maxBroadcastTableBytes and maxBroadcastRows

cloud-fan commented on code in PR #37819:
URL: https://github.com/apache/spark/pull/37819#discussion_r990166936


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/BroadcastExchangeExec.scala:
##########
@@ -121,7 +120,7 @@ case class BroadcastExchangeExec(
       // and only 70% of the slots can be used before growing in UnsafeHashedRelation,
       // here the limitation should not be over 341 million.
       (BytesToBytesMap.MAX_CAPACITY / 1.5).toLong
-    case _ => 512000000

Review Comment:
   This hardcoded value is probably the physical limitation. If we want fine-grained control over broadcast join decisions, we can probably add a config that is similar to `spark.sql.autoBroadcastJoinThreshold` and is based on number of rows.



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org