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

Spark JDBC requires support for column-name-free INSERT syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.6.1, 2.0.0
    • SQL
    • None

    Description

      Spark JDBC write only works with technologies which support the following INSERT statement syntax (JdbcUtils.scala: insertStatement()):

      INSERT INTO $table VALUES ( ?, ?, ..., ? )

      Some technologies require a list of column names:

      INSERT INTO $table ( $colNameList ) VALUES ( ?, ?, ..., ? )

      Therefore technologies like Progress JDBC Driver for Cassandra do not work with Spark JDBC write.

      Idea for fix:
      Move JdbcUtils.scala:insertStatement() into SqlDialect and add a SqlDialect for Progress JDBC Driver for Cassandra

      Attachments

        Issue Links

          Activity

            People

              CK49 Christian Kurz
              CK49 Christian Kurz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified