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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.1, 2.0.0
    • Component/s: SQL
    • Labels:
      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

              • Assignee:
                CK49 Christian Kurz
                Reporter:
                CK49 Christian Kurz
              • Votes:
                0 Vote for this issue
                Watchers:
                5 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