linguoxuan commented on code in PR #4215:
URL: https://github.com/apache/flink-cdc/pull/4215#discussion_r2675183124
##########
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-maxcompute/src/main/java/org/apache/flink/cdc/connectors/maxcompute/utils/SchemaEvolutionUtils.java:
##########
@@ -124,7 +124,12 @@ public static void addColumns(
.append(" ")
.append(string(addColumn.getAddColumn().getType()))
.append(" comment '")
-
.append(addColumn.getAddColumn().getType().asSummaryString())
+ // Use column comment if available, otherwise use type
description as
+ // fallback
+ .append(
+ addColumn.getAddColumn().getComment() != null
+ ? addColumn.getAddColumn().getComment()
+ :
addColumn.getAddColumn().getType().asSummaryString())
Review Comment:
Yes, you're right. I'm a little unsure about this part too. I have pushed a
new commit.
--
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]