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-12941) Spark-SQL JDBC Oracle dialect fails to map string datatypes to Oracle VARCHAR datatype
Date Wed, 02 Mar 2016 05:55:18 GMT

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

Apache Spark commented on SPARK-12941:
--------------------------------------

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

> Spark-SQL JDBC Oracle dialect fails to map string datatypes to Oracle VARCHAR datatype
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-12941
>                 URL: https://issues.apache.org/jira/browse/SPARK-12941
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.4.1
>         Environment: Apache Spark 1.4.2.2
>            Reporter: Jose Martinez Poblete
>            Assignee: Thomas Sebastian
>             Fix For: 1.4.2, 1.5.3, 1.6.2, 2.0.0
>
>
> When exporting data from Spark to Oracle, string datatypes are translated to TEXT for
Oracle, this is leading to the following error
> {noformat}
> java.sql.SQLSyntaxErrorException: ORA-00902: invalid datatype
> {noformat}
> As per the following code:
> https://github.com/apache/spark/blob/branch-1.4/sql/core/src/main/scala/org/apache/spark/sql/jdbc/jdbc.scala#L144
> See also:
> http://stackoverflow.com/questions/31287182/writing-to-oracle-database-using-apache-spark-1-4-0



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