amaliujia commented on code in PR #47171:
URL: https://github.com/apache/spark/pull/47171#discussion_r1663461576


##########
core/src/main/scala/org/apache/spark/internal/config/package.scala:
##########
@@ -42,6 +42,18 @@ package object config {
   private[spark] val SPARK_TASK_PREFIX = "spark.task"
   private[spark] val LISTENER_BUS_EVENT_QUEUE_PREFIX = 
"spark.scheduler.listenerbus.eventqueue"
 
+  private[spark] val DEFAULT_PARALLELISM =
+    ConfigBuilder("spark.default.parallelism")
+      .doc("Default number of partitions in RDDs returned by transformations 
like " +
+        "join, reduceByKey, and parallelize when not set by user. " +
+        "For distributed shuffle operations like reduceByKey and join, the 
largest number of " +
+        "partitions in a parent RDD. For operations like parallelize with no 
parent RDDs, " +
+        "it depends on the cluster manager. For example in Local mode, it 
defaults to the " +
+        "number of cores on the local machine")

Review Comment:
   This is something I am not sure. @cloud-fan do you remember?



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