You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/10/07 22:24:20 UTC

[jira] [Commented] (SPARK-7646) Create table support to JDBC Datasource

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

Xiao Li commented on SPARK-7646:
--------------------------------

Now, our save API can support JDBC data sources in the latest branch. Please check it. Thanks!

> Create table support to JDBC Datasource
> ---------------------------------------
>
>                 Key: SPARK-7646
>                 URL: https://issues.apache.org/jira/browse/SPARK-7646
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.3.1
>            Reporter: Venkata Ramana G
>              Labels: 1.4.1
>
> Support Create table into JDBCDataSource. Following are usage examples
> {code}
> df.saveAsTable(
> "testcreate2",
> "org.apache.spark.sql.jdbc",
>  org.apache.spark.sql.SaveMode.Overwrite,
>  Map("url"->s"$url", "dbtable"->"testcreate2", "user"->"xx", "password"->"xx", "driver"->"com.h2.Driver")
> )
> {code}
>  if table doesnot exists, this should create a table and write dataframe content to table.



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