[
https://issues.apache.org/jira/browse/SPARK-8532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yin Huai resolved SPARK-8532.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.4.1
1.5.0
Issue resolved by pull request 6937
[https://github.com/apache/spark/pull/6937]
> In Python's DataFrameWriter, save/saveAsTable/json/parquet/jdbc always
> override mode
> ------------------------------------------------------------------------------------
>
> Key: SPARK-8532
> URL: https://issues.apache.org/jira/browse/SPARK-8532
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.4.0
> Reporter: Yin Huai
> Assignee: Yin Huai
> Priority: Blocker
> Fix For: 1.5.0, 1.4.1
>
>
> Although users can use {{df.write.mode("overwrite")}} to specify the mode,
> when save/saveAsTable/json/parquet/jdbc is called, this mode will be
> overridden. For example, the implementation of json method is
> {code}
> def json(self, path, mode="error"):
> self._jwrite.mode(mode).json(path)
> {code}
> If users only call {{json("path")}}, the mode will be "error" instead of the
> mode specified in the mode method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]