You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2018/09/16 00:53:00 UTC
[jira] [Commented] (SPARK-25425) Extra options must overwrite
sessions options
[ https://issues.apache.org/jira/browse/SPARK-25425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616554#comment-16616554 ]
Dongjoon Hyun commented on SPARK-25425:
---------------------------------------
This is resolved via https://github.com/apache/spark/pull/22413 at master branch. And, we are waiting for two PRs against branch-2.4 and 2.3.
> Extra options must overwrite sessions options
> ---------------------------------------------
>
> Key: SPARK-25425
> URL: https://issues.apache.org/jira/browse/SPARK-25425
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.3.0, 2.3.1, 2.4.0
> Reporter: Maxim Gekk
> Assignee: Maxim Gekk
> Priority: Major
> Fix For: 2.5.0
>
>
> In load() and save() methods of DataSource V2, extra options are overwritten by session options:
> * https://github.com/apache/spark/blob/c9cb393dc414ae98093c1541d09fa3c8663ce276/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala#L244-L245
> * https://github.com/apache/spark/blob/c9cb393dc414ae98093c1541d09fa3c8663ce276/sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala#L205
> but implementation must be opposite - more specific extra options set via *.option(...)* must overwrite more common session options
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org