Skip to content

Commit 922efd5

Browse files
committed
revise
1 parent 806b45b commit 922efd5

File tree

1 file changed

+1
-3
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/datasources

1 file changed

+1
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,7 @@ case class DataSource(
573573
checkEmptyGlobPath: Boolean,
574574
checkFilesExist: Boolean): Seq[Path] = {
575575
val allPaths = caseInsensitiveOptions.get("path") ++ paths
576-
val hadoopConf = sparkSession.sessionState.newHadoopConfWithOptions(options)
577-
578-
DataSource.checkAndGlobPathIfNecessary(allPaths.toSeq, hadoopConf,
576+
DataSource.checkAndGlobPathIfNecessary(allPaths.toSeq, newHadoopConfiguration(),
579577
checkEmptyGlobPath, checkFilesExist)
580578
}
581579
}

0 commit comments

Comments
 (0)