LuciferYang commented on code in PR #40854:
URL: https://github.com/apache/spark/pull/40854#discussion_r1171407351
##########
core/src/main/scala/org/apache/spark/util/HadoopFSUtils.scala:
##########
@@ -119,11 +118,10 @@ private[spark] object HadoopFSUtils extends Logging {
s"Listing leaf files and directories for $s paths:<br/>${paths(0)},
..."
}
sc.setJobDescription(description)
- sc
- .parallelize(serializedPaths, numParallelism)
- .mapPartitions { pathStrings =>
+ sc.parallelize(paths, numParallelism)
+ .mapPartitions { pathsEachPartition =>
val hadoopConf = serializableConfiguration.value
- pathStrings.map(new Path(_)).toSeq.map { path =>
+ pathsEachPartition.toSeq.map { path =>
Review Comment:
Can we remove this `toSeq` and `iterator` in line 136?
--
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]