Carl-Zhou-CN commented on code in PR #6929:
URL: https://github.com/apache/seatunnel/pull/6929#discussion_r1654774846
##########
seatunnel-connectors-v2/connector-cdc/connector-cdc-mysql/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/utils/MySqlTypeUtils.java:
##########
@@ -62,10 +66,17 @@ public static org.apache.seatunnel.api.table.catalog.Column
convertToSeaTunnelCo
MySqlValueConverters::defaultParsingErrorHandler);
MySqlDefaultValueConverter mySqlDefaultValueConverter =
new MySqlDefaultValueConverter(mySqlValueConverters);
- Object defaultValue =
- mySqlDefaultValueConverter
- .parseDefaultValue(column,
column.defaultValueExpression().orElse(null))
- .orElse(null);
+
+ Optional<String> defaultValueExpression =
column.defaultValueExpression();
+ Object defaultValue = defaultValueExpression.orElse(null);
Review Comment:
What problem does the modification of this place solve?
--
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]