You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2015/06/22 18:47:02 UTC

[jira] [Commented] (SPARK-8532) In Python's DataFrameWriter, json/parquet/jdbc always override mode

    [ https://issues.apache.org/jira/browse/SPARK-8532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596205#comment-14596205 ] 

Yin Huai commented on SPARK-8532:
---------------------------------

For json/parquet/jdbc, seems we can just remove the mode.

> In Python's DataFrameWriter, 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
>            Priority: Critical
>
> Although users can use {{df.write.mode("overwrite")}} to specify the mode, when 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org