rahij commented on issue #25928: optimization: call fs.exists only when 
necessary
URL: https://github.com/apache/spark/pull/25928#issuecomment-535179773
 
 
   @dongjoon-hyun the exists method does:
   
   ```
   return getFileStatus(f) != null;
   ```
   
   the `getFileStatus` method can be slow depending on the implementation. The 
one I'm working with can take > 1 minute for datasources with a lot of files.

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