cloud-fan commented on a change in pull request #28778:
URL: https://github.com/apache/spark/pull/28778#discussion_r437967781
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
##########
@@ -180,6 +180,15 @@ class SparkSession private(
*/
@transient lazy val conf: RuntimeConfig = new
RuntimeConfig(sessionState.conf)
+ /**
+ * Same as `spark.default.parallelism`, can be isolated across sessions.
+ *
+ * @since 3.1.0
+ */
+ def defaultParallelism: Int = {
+
sessionState.conf.defaultParallelism.getOrElse(sparkContext.defaultParallelism)
Review comment:
so we add a config, whose only usage is to let users get the config
value?
----------------------------------------------------------------
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]