You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ku...@apache.org on 2025/08/19 01:19:33 UTC
(flink-cdc) branch master updated: [FLINK-38244][hotfix] Fix case-insensitive error when adding column After an existed column. (#4100)
This is an automated email from the ASF dual-hosted git repository.
kunni pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
The following commit(s) were added to refs/heads/master by this push:
new a0699ace3 [FLINK-38244][hotfix] Fix case-insensitive error when adding column After an existed column. (#4100)
a0699ace3 is described below
commit a0699ace3f9be3290f9869971a5d38c5ee62ba1c
Author: Hongshun Wang <12...@users.noreply.github.com>
AuthorDate: Tue Aug 19 09:19:28 2025 +0800
[FLINK-38244][hotfix] Fix case-insensitive error when adding column After an existed column. (#4100)
---
.../connectors/mysql/source/parser/CustomAlterTableParserListener.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-mysql/src/main/java/org/apache/flink/cdc/connectors/mysql/source/parser/CustomAlterTableParserListener.java b/flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-mysql/src/main/java/org/apache/flink/cdc/connectors/mysql/source/parser/CustomAlterTableParserListener.java
index 38b66b13c..e1b759932 100644
--- a/flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-mysql/src/main/java/org/apache/flink/cdc/connectors/mysql/source/parser/CustomAlterTableParserListener.java
+++ b/flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-mysql/src/main/java/org/apache/flink/cdc/connectors/mysql/source/parser/CustomAlterTableParserListener.java
@@ -226,6 +226,9 @@ public class CustomAlterTableParserListener extends MySqlParserBaseListener {
null))));
} else if (ctx.AFTER() != null) {
String afterColumn = parser.parseName(ctx.uid(1));
+ if (isTableIdCaseInsensitive) {
+ afterColumn = afterColumn.toLowerCase(Locale.ROOT);
+ }
changes.add(
new AddColumnEvent(
currentTable,