GitHub user HyukjinKwon opened a pull request: https://github.com/apache/spark/pull/16611
[SPARK-17967][SPARK-17878][SQL][PYTHON] Support for array as an option for datasources and for multiple values in nullValue in CSV ## What changes were proposed in this pull request? Multiple values in `nullValue` is actually more reasonable and `read.csv()` in R already supports it. In practice, there might be many values that should be treated as `null`. Also, this matches the behaviour to R's one as well. This PR suggests to add an API in Python, Scala and Java that takes `Array[String]` and the support for multiple values in `nullValue` option in CSV. In case of R, there seems requiring to be more changes. This will be followed up by this PR. ## How was this patch tested? Unit test in `readwriter.py`, `CSVTypeCastSuite.scala` and `CSVSuite.scala`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/HyukjinKwon/spark SPARK-17967 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/16611.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 #16611 ---- commit 387e723bf55d88b85074ee5a74b8471a50837ab7 Author: hyukjinkwon <gurwls...@gmail.com> Date: 2016-11-08T14:11:07Z Support for array as an option for datasources and for multiple values in nullValue ---- --- 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