JingsongLi commented on code in PR #944:
URL: https://github.com/apache/incubator-paimon/pull/944#discussion_r1172042603
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/cdc/UpdatedDataFieldsProcessFunction.java:
##########
@@ -200,6 +213,29 @@ public static ConvertAction canConvert(DataType oldType,
DataType newType) {
return oldIdx <= newIdx ? ConvertAction.CONVERT :
ConvertAction.IGNORE;
}
+ oldIdx = DECIMAL_TYPES.indexOf(oldType.getTypeRoot());
Review Comment:
We don't need to support the decimal modification, we just need to determine
if it is equal here.
```
if (oldType.equalsIgnoreNullable(newType)) {
return ConvertAction.CONVERT;
}
```
--
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]