GitHub user tdas opened a pull request:

    https://github.com/apache/spark/pull/12856

    [SPARK-14997][SQL] Fixed FileCatalog to return correct set of files when 
there is not partitioning scheme in the given paths

    ## What changes were proposed in this pull request?
    Lets says there are json files in the following directories structure
    ```
    xyz/file0.json
    xyz/subdir1/file1.json
    xyz/subdir2/file2.json
    xyz/subdir1/subsubdir1/file3.json
    ```
    `sqlContext.read.json("xyz")` should read only file0.json according to 
behavior in Spark 1.6.1. However in current master, all the 4 files are read. 
    
    The fix is to make FileCatalog return only the children files of the given 
path if there is not partitioning detected (instead of all the recursive list 
of files).
    
    ## How was this patch tested?
    
    unit tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tdas/spark SPARK-14997

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12856.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12856
    
----
commit b1f82ce389721c60bf22694470c52596f3ed9bcc
Author: Tathagata Das <[email protected]>
Date:   2016-05-03T00:29:10Z

    Fixed SPARK-14997

----


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