cloud-fan commented on code in PR #47171:
URL: https://github.com/apache/spark/pull/47171#discussion_r1668301182
##########
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:
I think so, but we don't need to expose such low-level details to end users.
--
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]