ThorneANN opened a new pull request, #4219: URL: https://github.com/apache/flink-cdc/pull/4219
This commit enhances the MySQL CDC connectors to correctly parse DDL statements containing both single quotes and double quotes in DEFAULT VALUE and COMMENT clauses. Changes: - [flink-connector-mysql-cdc](https://issues.apache.org/jira/browse/FLINK-connector-mysql-cdc): Updated DefaultValueParserListener.unquote() to handle both single and double quotes for DEFAULT VALUE parsing - [flink-cdc-pipeline-connector-mysql](https://issues.apache.org/jira/browse/FLINK-cdc-pipeline-connector-mysql): Added MySqlSchemaUtils.removeQuotes() utility method to handle both quote types for COMMENT parsing - Updated CustomColumnDefinitionParserListener and CustomAlterTableParserListener to use the new removeQuotes() method Tests: - Added DefaultValueParserListenerTest with 5 unit tests - Added MySqlSchemaUtilsTest with 7 unit tests - Added MySqlCommentParsingITCase with 4 integration tests This change ensures robust parsing of binlog events that may use either single or double quotes, as MySQL normalizes double quotes to single quotes in SHOW CREATE TABLE output but binlog events may contain either type. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
