Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12941

Spark-SQL JDBC Oracle dialect fails to map string datatypes to Oracle VARCHAR datatype

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.4.2, 1.5.3, 1.6.2, 2.0.0
    • Spark Core
    • None
    • Apache Spark 1.4.2.2

    Description

      When exporting data from Spark to Oracle, string datatypes are translated to TEXT for Oracle, this is leading to the following error

      java.sql.SQLSyntaxErrorException: ORA-00902: invalid datatype
      

      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

      Attachments

        Activity

          People

            thomastechs Thomas Sebastian
            jpoblete Jose Martinez Poblete
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: