Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/22018#discussion_r208784598
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala
---
@@ -297,7 +297,7 @@ object InMemoryFileIndex extends Logging {
val missingFiles = mutable.ArrayBuffer.empty[String]
val filteredLeafStatuses = allLeafStatuses.filterNot(
status => shouldFilterOut(status.getPath.getName))
- val resolvedLeafStatuses = filteredLeafStatuses.flatMap {
+ val resolvedLeafStatuses = filteredLeafStatuses.par.flatMap {
case f: LocatedFileStatus =>
--- End diff --
There is a comment about `listLeafFilesInParallel` at L311 is not correct
as `listLeafFilesInParallel` is removed. Can you also update this comment too?
https://github.com/apache/spark/blob/2bb5924e04eba5accfe58a4fbae094d46cc36488/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala#L311
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]