Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17093#discussion_r103532597
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningAwareFileIndex.scala
 ---
    @@ -300,7 +300,8 @@ object PartitioningAwareFileIndex extends Logging {
           sparkSession: SparkSession): Seq[(Path, Seq[FileStatus])] = {
     
         // Short-circuits parallel listing when serial listing is likely to be 
faster.
    -    if (paths.size < 
sparkSession.sessionState.conf.parallelPartitionDiscoveryThreshold) {
    --- End diff --
    
    why not we just make sure `parallelPartitionDiscoveryThreshold` is greater 
than 0? We can add a condition(via `checkValue`) in 
`SQLConf.PARALLEL_PARTITION_DISCOVERY_THRESHOLD`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to