Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12435#discussion_r60320810
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamFileCatalog.scala
 ---
    @@ -54,6 +54,6 @@ class StreamFileCatalog(sqlContext: SQLContext, path: 
Path) extends FileCatalog
       override def refresh(): Unit = {}
     
       override def allFiles(): Seq[FileStatus] = {
    -    fs.listStatus(metadataLog.get(None, None).flatMap(_._2).map(new 
Path(_)))
    +    fs.listStatus(metadataLog.allFiles().map(f => new Path(f.path)))
    --- End diff --
    
    We only need to store the ones that we need later on:
    
    Need:
     - long length
     - Path path
    
    Might need:
     - long modification_time
    
    Obvious:
     - boolean isdir
    
    Not sure (but not used now):
     - int block_replication
     - long blocksize
    
    Don't need
     - FsPermission permission
     - String owner
     - String group
     - long access_time



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to