GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/12494
[SPARK-13266][SQL] None read/writer options were not transalated to "null"
## What changes were proposed in this pull request?
In Python, the `option` and `options` method of `DataFrameReader` and
`DataFrameWriter` were sending the string "None" instead of `null` when passed
`None`, therefore making it impossible to send an actual `null`. This fixes
that problem.
This is based on #11305 from @mathieulongtin.
## How was this patch tested?
Added test to readwriter.py.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 py-df-none-option
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12494.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 #12494
----
commit 3d056c3939de832fb5e67521c8d3a1d213cbb035
Author: mathieu longtin <[email protected]>
Date: 2016-02-22T16:42:18Z
fix for https://issues.apache.org/jira/browse/SPARK-13266
commit 54350320cc4104fbb9a1512bbdc41536e53e1122
Author: Liang-Chi Hsieh <[email protected]>
Date: 2016-04-19T09:03:18Z
Python can pass None as DataFrameReader/Writer option.
----
---
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]