GitHub user HyukjinKwon opened a pull request:

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

    [SPARK-14103][SQL] Parse unescaped quotes in CSV data source.

    ## What changes were proposed in this pull request?
    
    This PR resolves the problem during parsing unescaped quotes in input data. 
For example, currently the data below:
    
    ```
    "a"b,ccc,ddd
    e,f,g
    ```
    
    produces a data below:
    
    - **Before**
    
    ```bash
    ["a"b,ccc,ddd[\n]e,f,g]  <- as a value.
    ```
    
    - **After**
    
    ```bash
    ["a"b], [ccc], [ddd]
    [e], [f], [g]
    ```
    
    This PR bumps up the Univocity parser's version. This was fixed in `2.0.2`, 
https://github.com/uniVocity/univocity-parsers/issues/60.
    
    ## How was this patch tested?
    
    Unit tests in `CSVSuite` and `sbt/sbt scalastyle`.

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

    $ git pull https://github.com/HyukjinKwon/spark SPARK-14103-quote

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

    https://github.com/apache/spark/pull/12226.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 #12226
    
----
commit 3a9ef7550e201a74759f45cca56595c107100df8
Author: hyukjinkwon <[email protected]>
Date:   2016-04-07T00:26:28Z

    Parse unescaped quotes

commit 3165d1d2aca61280ba123adc694dcb078c8a6d50
Author: hyukjinkwon <[email protected]>
Date:   2016-04-07T00:28:12Z

    Remove unindentionally added dependencies

commit cca836ae38dbd79165b9919a222049703e06be06
Author: hyukjinkwon <[email protected]>
Date:   2016-04-07T01:03:15Z

    Add a test for exception

commit d554c311efacd26cc08c9dd352a85da9d5e4990f
Author: hyukjinkwon <[email protected]>
Date:   2016-04-07T01:20:52Z

    Remove exception halding as not distinguishing this exception

----


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