ChaomingZhangCN commented on code in PR #3893:
URL: https://github.com/apache/flink-cdc/pull/3893#discussion_r1978701396
##########
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:
##########
@@ -371,7 +374,10 @@ public void
exitAlterByModifyColumn(MySqlParser.AlterByModifyColumnContext ctx)
Column column = columnDefinitionListener.getColumn();
Map<String, DataType> typeMapping = new HashMap<>();
typeMapping.put(column.name(), fromDbzColumn(column,
tinyInt1isBit));
- changes.add(new AlterColumnTypeEvent(currentTable,
typeMapping));
+ AlterColumnTypeEvent alterColumnTypeEvent =
+ new AlterColumnTypeEvent(currentTable,
typeMapping);
+ alterColumnTypeEvent.addColumnComment(column.name(),
column.comment());
+ changes.add(alterColumnTypeEvent);
Review Comment:
ok
--
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]