You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/05/14 02:25:00 UTC
[jira] [Resolved] (SPARK-7601) Support Insert into JDBC Datasource
[ https://issues.apache.org/jira/browse/SPARK-7601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-7601.
-------------------------------------
Resolution: Fixed
Issue resolved by pull request 6121
[https://github.com/apache/spark/pull/6121]
> Support Insert into JDBC Datasource
> -----------------------------------
>
> Key: SPARK-7601
> URL: https://issues.apache.org/jira/browse/SPARK-7601
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.3.1
> Reporter: Venkata Ramana G
>
> Support Insert into JDBCDataSource. Following are usage examples
> {code}
> sqlContext.sql(
> s"""
> |CREATE TEMPORARY TABLE testram1
> |USING org.apache.spark.sql.jdbc
> |OPTIONS (url '$url', dbtable 'testram1', user 'xx', password 'xx', driver 'com.h2.Driver')
> """.stripMargin.replaceAll("\n", " "))
> sqlContext.sql("insert into table testram1 select * from testsrc").show
> {code}
--
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