lizc9 commented on code in PR #6291:
URL: https://github.com/apache/paimon/pull/6291#discussion_r2366676365
##########
paimon-common/src/main/java/org/apache/paimon/utils/TypeUtils.java:
##########
@@ -144,12 +144,7 @@ public static Object castFromStringInternal(String s,
DataType type, boolean isC
} else {
// Compatible canal-cdc
Float f = Float.valueOf(s);
- String floatStr = f.toString();
- if (s.contains(".") && !s.contains("E")) {
Review Comment:
> Can you add a test for `E`?
Of course, an example has been added to the unit test below: 6.1042607E-4
--
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]