LuciferYang commented on code in PR #40920: URL: https://github.com/apache/spark/pull/40920#discussion_r1175422370
########## sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala: ########## @@ -789,22 +789,22 @@ case class RepairTableCommand( if (partitionSpecsAndLocs.length > threshold) { val hadoopConf = spark.sessionState.newHadoopConf() val serializableConfiguration = new SerializableConfiguration(hadoopConf) - val serializedPaths = partitionSpecsAndLocs.map(_._2.toString).toArray + val locations = partitionSpecsAndLocs.map(_._2).toArray // Set the number of parallelism to prevent following file listing from generating many tasks // in case of large #defaultParallelism. - val numParallelism = Math.min(serializedPaths.length, + val numParallelism = Math.min(locations.length, Review Comment: Are `locations.length` and `partitionSpecsAndLocs.length` equal? -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org