sadikovi commented on code in PR #35764:
URL: https://github.com/apache/spark/pull/35764#discussion_r980779629


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCOptions.scala:
##########
@@ -111,6 +111,9 @@ class JDBCOptions(
   // the number of partitions
   val numPartitions = parameters.get(JDBC_NUM_PARTITIONS).map(_.toInt)
 
+  // the default number of partitions
+  val defaultNumPartitions = parameters.getOrElse(DEFAULT_NUM_PARTITIONS, 
"10").toInt

Review Comment:
   I think the name of the config is misleading, this is essentially the 
default value of `numPartitions` configs:
   ```scala
   val numPartitions = 
parameters.get(JDBC_NUM_PARTITIONS).map(_.toInt).getOrElse(10)
   ```



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