Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-864

Antlr DDL parser exception for "create database ... CHARSET=..."

    XMLWordPrintable

Details

    Description

      This valid sql query crashes job.

        "ddl" : "CREATE DATABASE IF NOT EXISTS company_123 CHARSET=utf8 COLLATE=utf8_general_ci"
      
      Caused by: io.debezium.text.ParsingException: mismatched input 'CHARSET' expecting {<EOF>, '--'}
      at io.debezium.ddl.parser.mysql.generated.MySqlParser.root(MySqlParser.java:811)
      ... 5 more
      at io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser.parseTree(MySqlAntlrDdlParser.java:42)
      at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
      at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:200)
      at org.antlr.v4.runtime.DefaultErrorStrategy.sync(DefaultErrorStrategy.java:242)
      Caused by: org.antlr.v4.runtime.InputMismatchException
      

      Attachments

        Activity

          People

            jpechane Jiri Pechanec
            pimpelsang Eero Koplimets
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: