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 2017/01/22 00:39:26 UTC

[jira] [Issue Comment Deleted] (SPARK-19296) Awkward changes for JdbcUtils.saveTable in Spark 2.1.0

     [ https://issues.apache.org/jira/browse/SPARK-19296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun updated SPARK-19296:
----------------------------------
    Comment: was deleted

(was: Hi, [~zwu.net@gmail.com]

It looks like a question. Could you ask to dev mailing list before making a JIRA issue? 

BTW, what you mentioned here is SPARK-17719 and https://github.com/apache/spark/pull/15292 .)

> Awkward changes for JdbcUtils.saveTable in Spark 2.1.0
> ------------------------------------------------------
>
>                 Key: SPARK-19296
>                 URL: https://issues.apache.org/jira/browse/SPARK-19296
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Paul Wu
>            Priority: Minor
>
> The Change from JdbcUtils.saveTable(DataFrame, String, String, Property) to  JdbcUtils.saveTable(DataFrame, String, String, JDBCOptions), not only incompatible to previous versions (so the previous code in java won't compile, but also introduced silly code change: One has to specify url and table  twice like this:
> JDBCOptions jdbcOptions = new JDBCOptions(url, table, map);
> JdbcUtils.saveTable(ds, url, table,jdbcOptions);
> Why does one have to supply the same things ulr, table twice? (If you don't specify it in both places, the exception will be thrown).



--
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