Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.execution.streaming.FileStreamSink
import org.apache.spark.sql.types.StructType
import org.apache.spark.util.SerializableConfiguration
import org.apache.spark.util.ThreadUtils.parmap


/**
Expand Down Expand Up @@ -297,7 +298,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 = parmap(filteredLeafStatuses.toSeq, "resolveLeafStatuses", 8) {
case f: LocatedFileStatus =>
Some(f)

Expand Down Expand Up @@ -334,7 +335,7 @@ object InMemoryFileIndex extends Logging {
missingFiles += f.getPath.toString
None
}
}
}.flatten

if (missingFiles.nonEmpty) {
logWarning(
Expand Down