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

Debezium-ddl-parser crashes on parsing MySQL DDL statement (specific UPDATE)

XMLWordPrintable

    • False
    • None
    • False

      Parser crashing only in case where "join" and "limit" both in statement

      
      CREATE PROCEDURE test_update()
      BEGIN		
        UPDATE test_auto_inc ai
          JOIN test_join_limit jl ON jl.id = ai.id		
        SET ai.col_1  = null	
        LIMIT 500
        ;
      END
      -- table example 
      CREATE TABLE `test_auto_inc` (  `
      id` int unsigned NOT NULL AUTO_INCREMENT, 
       `col_1` int DEFAULT NULL, 
       PRIMARY KEY (`id`)) 
      ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
      
      CREATE TABLE `test_join_limit` (  
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
      `col` int(10) DEFAULT NULL, 
       PRIMARY KEY (`id`)
      )  ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      2.4.0.Final

      What is the captured database version and mode of depoyment?

      (Percona (Mysql 5.7.41)

      Do you have the connector logs, ideally from start till finish?

            anmohant Anisha Mohanty
            nekkett Nikita Koposov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: