spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-16968) Allow to add additional options when creating a new table in DF's JDBC writer.
Date Wed, 18 Jan 2017 15:41:26 GMT

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

Apache Spark commented on SPARK-16968:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/16634

> Allow to add additional options when creating a new table in DF's JDBC writer. 
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-16968
>                 URL: https://issues.apache.org/jira/browse/SPARK-16968
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Jie Huang
>            Assignee: Jie Huang
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> We met some problem when trying to export Dataframe to external mysql thru JDBC driver
(if the table doesn't exist). In general, Spark will create a new table automatically if it
doesn't exist. However it doesn't support to add additional options when creating a new table.

> For example, we need to set the default "CHARSET=utf-8" in some customer's table. Otherwise,
some UTF-8 columns cannot be exported to mysql successfully. Some encoding exception will
be thrown and finally break the job.  



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


Mime
View raw message