lvyanquan commented on code in PR #3824:
URL: https://github.com/apache/flink-cdc/pull/3824#discussion_r1914322875


##########
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/test/java/org/apache/flink/cdc/connectors/paimon/sink/PaimonMetadataApplierTest.java:
##########
@@ -137,6 +140,12 @@ public void testApplySchemaChange(String metastore)
         Assertions.assertEquals(
                 tableSchema, 
catalog.getTable(Identifier.fromString("test.table1")).rowType());
 
+        Assertions.assertEquals(
+                "col3DefValue",
+                catalog.getTable(Identifier.fromString("test.table1"))
+                        .options()
+                        .get("fields.col3.default-value"));
+
         Map<String, String> nameMapping = new HashMap<>();
         nameMapping.put("col2", "newcol2");
         nameMapping.put("col3", "newcol3");

Review Comment:
   It turns out that we should modify the options of default value too if we 
rename the columns.



-- 
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]

Reply via email to