File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
sql/core/src/test/scala/org/apache/spark/sql/streaming Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1282,6 +1282,7 @@ class FileStreamSourceSuite extends FileStreamSourceTest {
12821282 // This is to avoid running a spark job to list of files in parallel
12831283 // by the InMemoryFileIndex.
12841284 spark.sessionState.conf.setConf(SQLConf .PARALLEL_PARTITION_DISCOVERY_THRESHOLD , numFiles * 2 )
1285+ spark.sessionState.conf.setConf(SQLConf .IGNORE_DATA_LOCALITY , true )
12851286
12861287 withTempDirs { case (root, tmp) =>
12871288 val src = new File (root, " a=1" )
@@ -1946,6 +1947,7 @@ class FileStreamSourceSuite extends FileStreamSourceTest {
19461947 val originClassForLocalFileSystem = spark.conf.getOption(optionKey)
19471948 try {
19481949 spark.conf.set(optionKey, classOf [CountListingLocalFileSystem ].getName)
1950+ spark.conf.set(SQLConf .IGNORE_DATA_LOCALITY .key, " true" )
19491951 body
19501952 } finally {
19511953 originClassForLocalFileSystem match {
You can’t perform that action at this time.
0 commit comments