HyukjinKwon commented on a change in pull request #29659:
URL: https://github.com/apache/spark/pull/29659#discussion_r484304012



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FileTable.scala
##########
@@ -139,6 +139,14 @@ abstract class FileTable(
    * 2. Catalog support is required, which is still under development for data 
source V2.
    */
   def fallbackFileFormat: Class[_ <: FileFormat]
+
+  /**
+   * Whether or not paths should be globbed before being used to access files.
+   */
+  private def globPaths: Boolean = {
+    val entry = options.get(DataSource.GLOB_PATHS_KEY)
+    Option(entry).getOrElse("true") == "true"

Review comment:
       Maybe:
   
   ```scala
   Option(entry).map(_ == "true").getOrElse(true)
   ```
   
   just to be consistent with above:
   
   ```scala
       options.get(DataSource.GLOB_PATHS_KEY)
         .map(_ == "true")
         .getOrElse(true)
   ```
   




----------------------------------------------------------------
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]



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

Reply via email to