GitHub user HyukjinKwon opened a pull request:
https://github.com/apache/spark/pull/12629
[SPARK-14800][SQL] Dealing with null as a value in options for each
internal data source
## What changes were proposed in this pull request?
https://issues.apache.org/jira/browse/SPARK-14800
This PR add the support for `null` for values as options (as a default
value) for all the internal data source in Spark.
This PR introduces two classes
- `PrameterUtils`: This has some functions used in `CSVOptions` to check
`null` for other data sources.
- `OrcOptions`: Just like `ParquetOptions` this was separated (actually
they are almost identical).
## How was this patch tested?
Unit tests in `CSVSuite`, `JsonSuite`, `OrcHadoopFsRelationSuite,
`ParquetHadoopFsRelationSuite` and `LibSVMRelation`. Also,`sbt scalastyle`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HyukjinKwon/spark SPARK-14800
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12629.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 #12629
----
commit 8fb3a23ef61353749c35f523dbfc7d8f5d739fbf
Author: hyukjinkwon <[email protected]>
Date: 2016-04-23T02:09:36Z
CSV and JSON are now safe with null options
commit ccd3c7b43c0247e345b714210f7421d7dc484718
Author: hyukjinkwon <[email protected]>
Date: 2016-04-23T02:55:02Z
text, ORC, Parquet and libsvm are also okay
----
---
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]