AngersZhuuuu commented on pull request #35734:
URL: https://github.com/apache/spark/pull/35734#issuecomment-1062492803


   Agree with @cloud-fan that we don't have a good abstraction for this feature.
   IMO, we can  add a new method under `CatalogTable` and 
`CatalogTablePartition`, such as
   ```
   getFileList(fileFormat: String, fs: FileSystem)
   ```
   
   Then we can directly list files according to file format, when in all other 
place, we can just call this API.  Then we don't need to judge if it's  
`SymlinkTextFormat` every where.
   
   WDYT @cloud-fan @viirya @dongjoon-hyun 


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

To unsubscribe, e-mail: [email protected]

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