GitHub user sbcd90 opened a pull request:

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

    [SPARK-14997]Files in subdirectories are incorrectly considered in 
sqlContext.read.json()

    ## What changes were proposed in this pull request?
    
    This PR fixes the issue of "Files in subdirectories are incorrectly 
considered in sqlContext.read.json()".
    
    An example,
    
    ```
    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.
    ```
    
    
    ## How was this patch tested?
    
    unit tests
    
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)

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

    $ git pull https://github.com/sbcd90/spark jsonReadIssue

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

    https://github.com/apache/spark/pull/12774.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 #12774
    
----
commit a69329790648fc53d4cf8cc5be659f6ae1989046
Author: Subhobrata Dey <[email protected]>
Date:   2016-04-29T04:25:53Z

    [SPARK-14997]Files in subdirectories are incorrectly considered in 
sqlContext.read.json()

----


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