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

Alter table query are having issues while parsing

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0.Final
    • Fix Version/s: None
    • Component/s: mysql-connector
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Try adding a testcase in ddl-parser with above mentioned code, and testcase will fail

      Show
      Try adding a testcase in ddl-parser with above mentioned code, and testcase will fail

      Description

      String ddl = "ALTER TABLE testtbl RENAME INDEX t$testtbl$tbl$id TO testtbl$tbl$id"//tables size == 0 instead of 1String ddl = "ALTER TABLE testtbl RENAME INDEX testtbl$t$col TO testtbl$col";String ddl = "ALTER TABLE testtbl RENAME INDEX testtbl$col TO testtbl$t$post$col";
        
      parser.parse(ddl, tables);
      
      //All the above queries pass below assertion:
      assertThat(((MySqlAntlrDdlParser)parser).getParsingExceptionsFromWalker().size()).isEqualTo(0);
        
      //But gives exception for
       assertThat(tables.size()).isEqualTo(1);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ritesh277coe Ritesh Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: