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

Debezium crashes on parsing MySQL DDL statement (specific JOIN)

XMLWordPrintable

    • False
    • None
    • False
    • Critical

      Debezium crashes while parsing this statement:

       

      DROP PROCEDURE IF EXISTS test_procedure;
      
      CREATE PROCEDURE test_procedure()
      BEGIN	
          #prepare	
          DROP TABLE IF EXISTS test_table_1;	
          DROP TABLE IF EXISTS test_table_2;	
          DROP TABLE IF EXISTS test_table_3;		
      
          CREATE TABLE test_table_1(id INT);	
          CREATE TABLE test_table_2(id INT);	
          CREATE TABLE test_table_3(id INT);		
          
          #problem statement	
          SELECT * FROM test_table_1 t1 	
          LEFT JOIN test_table_2 t2 		 
               JOIN test_table_3 t3 ON t3.id=t2.id		 
               ON t1.id=t2.id;		
      END 

       

      And it works only with LEFT JOIN.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      2.4 from sources

      What is the captured database version and mode of depoyment?

      (Percona (Mysql 5.7.41)

              anmohant Anisha Mohanty
              alpavlov Alex Pavlou (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: