CheneyYin commented on code in PR #6740:
URL: https://github.com/apache/seatunnel/pull/6740#discussion_r1577663927


##########
seatunnel-connectors-v2/connector-cdc/connector-cdc-mysql/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/utils/MySqlTypeUtils.java:
##########
@@ -43,7 +43,7 @@ public static org.apache.seatunnel.api.table.catalog.Column 
convertToSeaTunnelCo
                         .length((long) column.length())
                         .precision((long) column.length())
                         .scale(column.scale().orElse(0))
-                        .defaultValue(column.defaultValue());
+                        
.defaultValue(column.defaultValueExpression().orElse("NULL"));

Review Comment:
   Maybe you should evaluate the value of the expression? I believe that the 
`defaultValue` function expects a value object. The class 
`io.debezium.connector.mysql.MySqlDefaultValueConverter` can slove it.



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