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

PostgreSQL CITEXT type JDBC support

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.6.1
    • Fix Version/s: None
    • Component/s: SQL
    • Environment:

      Ubuntu 14.04
      PostgreSQL 9.3.9

      Description

      When trying to use spark data frame on a table with CITEXT type you get the following error:

      Exception in thread "main" java.sql.SQLException: Unsupported type 1111
      at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.org$apache$spark$sql$execution$datasources$jdbc$JDBCRDD$$getCatalystType(JDBCRDD.scala:102)
      at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anonfun$1.apply(JDBCRDD.scala:141)
      at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anonfun$1.apply(JDBCRDD.scala:141)
      at scala.Option.getOrElse(Option.scala:120)
      at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:140)
      at org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.<init>(JDBCRelation.scala:91)
      at org.apache.spark.sql.DataFrameReader.jdbc(DataFrameReader.scala:222)
      at org.apache.spark.sql.DataFrameReader.jdbc(DataFrameReader.scala:208)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bahchis Sergey Bahchissaraitsev
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: