You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/09/25 06:31:20 UTC

[jira] [Commented] (SPARK-17661) Consolidate various listLeafFiles implementations

    [ https://issues.apache.org/jira/browse/SPARK-17661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15520314#comment-15520314 ] 

Apache Spark commented on SPARK-17661:
--------------------------------------

User 'petermaxlee' has created a pull request for this issue:
https://github.com/apache/spark/pull/15235

> Consolidate various listLeafFiles implementations
> -------------------------------------------------
>
>                 Key: SPARK-17661
>                 URL: https://issues.apache.org/jira/browse/SPARK-17661
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Peter Lee
>
> There are 4 listLeafFiles-related functions in Spark:
> - ListingFileCatalog.listLeafFiles (which calls HadoopFsRelation.listLeafFilesInParallel if the number of paths passed in is greater than a threshold; if it is lower, then it has its own serial version implemented)
> - HadoopFsRelation.listLeafFiles (called only by HadoopFsRelation.listLeafFilesInParallel)
> - HadoopFsRelation.listLeafFilesInParallel (called only by ListingFileCatalog.listLeafFiles)
> It is actually very confusing and error prone because there are effectively two distinct implementations for the serial version of listing leaf files. This code can be improved by:
> - Move all file listing code into ListingFileCatalog, since it is the only class that needs this.
> - Keep only one function for listing files in serial.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org