GitHub user wojtek-szymanski opened a pull request:

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

    [SPARK-19709][SQL] Read empty file with CSV data source

    ## What changes were proposed in this pull request?
    
    Bugfix for reading empty file with CSV data source. Instead of throwing 
`NoSuchElementException`, an empty data frame is returned.
     
    ## How was this patch tested?
    
    Added new unit test in 
`org.apache.spark.sql.execution.datasources.csv.CSVSuite`

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

    $ git pull https://github.com/wojtek-szymanski/spark SPARK-19709

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

    https://github.com/apache/spark/pull/17068.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 #17068
    
----
commit 1c80d4c7933ce823129642c9bfa5d291e7530671
Author: Wojtek Szymanski <wk.szyman...@gmail.com>
Date:   2017-02-25T23:37:19Z

    Fix: SPARK-19709 CSV datasource fails to read empty file

commit 90f315cea819b521745b637c36026fcdc16bfb0d
Author: Wojtek Szymanski <wk.szyman...@gmail.com>
Date:   2017-02-25T23:43:17Z

    test renamed

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to