Skip to content
Prev Previous commit
Next Next commit
Avoid checkFilesExist check
  • Loading branch information
Hirobe Keiichi committed Dec 29, 2018
commit 239cfa4792b6bebd386e4a962cdf4b0e9b2471aa
Original file line number Diff line number Diff line change
Expand Up @@ -560,20 +560,18 @@ case class DataSource(
globPath
}.toSeq

if (checkFilesExist) {
val (filtered, filteredOut) = allGlobPath.partition { path =>
!InMemoryFileIndex.shouldFilterOut(path.getName)
}
if (filteredOut.nonEmpty) {
if (filtered.isEmpty) {
throw new AnalysisException(
"All path were ignored. The following path were ignored:\n" +
s"${filteredOut.mkString("\n ")}")
} else {
logDebug(
"The following path were ignored:\n" +
s"${filteredOut.mkString("\n ")}")
}
val (filtered, filteredOut) = allGlobPath.partition { path =>
!InMemoryFileIndex.shouldFilterOut(path.getName)
}
if (filteredOut.nonEmpty) {
if (filtered.isEmpty) {
throw new AnalysisException(
"All path were ignored. The following path were ignored:\n" +
s"${filteredOut.mkString("\n ")}")
} else {
logDebug(
"The following path were ignored:\n" +
s"${filteredOut.mkString("\n ")}")
}
}

Expand Down