Uploaded image for project: 'Bahir'
  1. Bahir
  2. BAHIR-229

JdbcStreamWriter.scala caused an error if used with postgreSql JDBC driver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Spark-2.3.0
    • Spark-2.4.0
    • None

    Description

      JdbcStreamWriter.scala caused an error for PostgreSql JDBC driver: 

      org.postgresql.util.PSQLException: ERROR: syntax error at or near "REPLACE"

      Postgre doesn't support REPLACE keyword only INSERT. However REPLACE hardcoded.
      Only mySql supports REPLACE keyword all other Jdbc driver will fail

      *https://github.com/apache/bahir/blob/d1200cb1cab57ac337b067443d47cef67d574fbd/sql-streaming-jdbc/src/main/scala/org/apache/bahir/sql/streaming/jdbc/JdbcStreamWriter.scala*

      Attachments

        1. consoleLog.txt
          271 kB
          Max Khlupnov

        Activity

          People

            Unassigned Unassigned
            makhlu Max Khlupnov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: