gengliangwang commented on a change in pull request #29471:
URL: https://github.com/apache/spark/pull/29471#discussion_r474390611
##########
File path: core/src/main/scala/org/apache/spark/internal/config/package.scala
##########
@@ -443,6 +443,40 @@ package object config {
.booleanConf
.createWithDefault(false)
+ val PARALLEL_PARTITION_DISCOVERY_THRESHOLD =
+ ConfigBuilder("spark.rdd.sources.parallelPartitionDiscovery.threshold")
+ .doc("The maximum number of paths allowed for listing files at driver
side. If the number " +
+ "of detected paths exceeds this value during partition discovery, it
tries to list the " +
+ "files with another Spark distributed job. This configuration is
effective only when " +
+ "using file-based using HadoopFSUtils")
+ .version("1.5.0")
+ .intConf
+ .checkValue(parallel => parallel >= 0, "The maximum number of paths
allowed for listing " +
+ "files at driver side must not be negative")
+ .createWithDefault(2)
Review comment:
The default values of
`spark.sql.sources.parallelPartitionDiscovery.threshold` is 32, why is it 32
here?
##########
File path: core/src/main/scala/org/apache/spark/internal/config/package.scala
##########
@@ -443,6 +443,40 @@ package object config {
.booleanConf
.createWithDefault(false)
+ val PARALLEL_PARTITION_DISCOVERY_THRESHOLD =
+ ConfigBuilder("spark.rdd.sources.parallelPartitionDiscovery.threshold")
+ .doc("The maximum number of paths allowed for listing files at driver
side. If the number " +
+ "of detected paths exceeds this value during partition discovery, it
tries to list the " +
+ "files with another Spark distributed job. This configuration is
effective only when " +
+ "using file-based using HadoopFSUtils")
+ .version("1.5.0")
+ .intConf
+ .checkValue(parallel => parallel >= 0, "The maximum number of paths
allowed for listing " +
+ "files at driver side must not be negative")
+ .createWithDefault(2)
Review comment:
The default values of
`spark.sql.sources.parallelPartitionDiscovery.threshold` is 32, why is it 2
here?
----------------------------------------------------------------
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]