-
Bug
-
Resolution: Done
-
Major
-
0.9.5.Final
-
None
{{CREATE INDEX `idx` ON `db`.`table` (created_at) COMMENT '' ALGORITHM DEFAULT LOCK DEFAULT
}}
Causes:
{{org.apache.kafka.connect.errors.ConnectException: no viable alternative at input 'LOCK DEFAULT' at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:230) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:208) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:508) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at com.github.shyiko.mysql.binlog.BinaryLogClient.notifyEventListeners(BinaryLogClient.java:1095) ~[mysql-binlog-connector-java-0.19.1.jar:0.19.1] at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:943) ~[mysql-binlog-connector-java-0.19.1.jar:0.19.1] at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:580) ~[mysql-binlog-connector-java-0.19.1.jar:0.19.1] at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:825) ~[mysql-binlog-connector-java-0.19.1.jar:0.19.1] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: io.debezium.text.ParsingException: no viable alternative at input 'LOCK DEFAULT' at io.debezium.antlr.ParsingErrorListener.syntaxError(ParsingErrorListener.java:40) ~[debezium-ddl-parser-0.9.5.Final.jar:0.9.5.Final] at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41) ~[antlr4-runtime-4.7.jar:4.7] at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:544) ~[antlr4-runtime-4.7.jar:4.7] at org.antlr.v4.runtime.DefaultErrorStrategy.reportNoViableAlternative(DefaultErrorStrategy.java:282) ~[antlr4-runtime-4.7.jar:4.7] at org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:121) ~[antlr4-runtime-4.7.jar:4.7] at io.debezium.ddl.parser.mysql.generated.MySqlParser.sqlStatements(MySqlParser.java:1078) ~[debezium-ddl-parser-0.9.5.Final.jar:0.9.5.Final] at io.debezium.ddl.parser.mysql.generated.MySqlParser.root(MySqlParser.java:812) ~[debezium-ddl-parser-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser.parseTree(MySqlAntlrDdlParser.java:68) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser.parseTree(MySqlAntlrDdlParser.java:41) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at io.debezium.antlr.AntlrDdlParser.parse(AntlrDdlParser.java:80) ~[debezium-ddl-parser-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.MySqlSchema.applyDdl(MySqlSchema.java:307) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.BinlogReader.handleQueryEvent(BinlogReader.java:694) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:492) ~[debezium-connector-mysql-0.9.5.Final.jar:0.9.5.Final] ... 5 common frames omitted Caused by: org.antlr.v4.runtime.NoViableAltException: null at org.antlr.v4.runtime.atn.ParserATNSimulator.noViableAlt(ParserATNSimulator.java:2023) ~[antlr4-runtime-4.7.jar:4.7] at org.antlr.v4.runtime.atn.ParserATNSimulator.execATN(ParserATNSimulator.java:467) ~[antlr4-runtime-4.7.jar:4.7] at org.antlr.v4.runtime.atn.ParserATNSimulator.adaptivePredict(ParserATNSimulator.java:393) ~[antlr4-runtime-4.7.jar:4.7] at io.debezium.ddl.parser.mysql.generated.MySqlParser.sqlStatements(MySqlParser.java:983) ~[debezium-ddl-parser-0.9.5.Final.jar:0.9.5.Final] ... 12 common frames omitted}}
Thanks!