wangyum commented on a change in pull request #25869: [SPARK-29189][SQL] Add an 
option to ignore block locations when listing file
URL: https://github.com/apache/spark/pull/25869#discussion_r326890982
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala
 ##########
 @@ -290,6 +291,7 @@ object InMemoryFileIndex extends Logging {
       isRootPath: Boolean): Seq[FileStatus] = {
     logTrace(s"Listing $path")
     val fs = path.getFileSystem(hadoopConf)
+    val ignoreLocality = 
hadoopConf.getBoolean(SQLConf.IGNORE_DATA_LOCALITY.key, false)
 
 Review comment:
   Could we move this config to 
[InMemoryFileIndex.scala#L198](https://github.com/apache/spark/blob/0da290368ae7bf59aa37b3a1aac514808510f484/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala#L198).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to