GitHub user dhunziker opened a pull request:

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

    [SPARK-19465][SQL] Added options for custom boolean values in CSV

    ## What changes were proposed in this pull request?
    
    It adds trueValue and falseValue options for customising the values used 
for Boolean types in CSV files. The default behaviour remains unchanged but the 
two new options allow for more flexibility. As it is currently the case, the 
values are matched ignoring their case.  
    
    ## How was this patch tested?
    
    Extended existing unit tests for custom Boolean values and added a new test 
for asserting the IllegalArgumentException thrown by Scala's 
StringLike.toBoolean function.


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

    $ git pull https://github.com/dhunziker/spark feature/SPARK-19465

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

    https://github.com/apache/spark/pull/16812.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 #16812
    
----
commit 0926626f3ab6411e405fb31c4a291d49092a19a4
Author: Dennis Hunziker <dennis.hunzi...@gmail.com>
Date:   2017-02-05T20:06:49Z

    [SPARK-19465][SQL] Added options for custom boolean values in CSV

----


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