GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/19654
[SPARK-22437][PYSPARK] default mode for jdbc is wrongly set to None
## What changes were proposed in this pull request?
When writing using jdbc with python currently we are wrongly assigning by
default None as writing mode. This is due to wrongly calling mode on the
`_jwrite` object instead of `self` and it causes an exception.
## How was this patch tested?
manual tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-22437
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19654.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 #19654
----
commit dd527698476d31cfc90898031f7acbe5c3b89ec1
Author: Marco Gaido <[email protected]>
Date: 2017-11-03T14:35:42Z
[SPARK-22437][PYSPARK] default mode for jdbc is wrongly set to None
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]