hk-lrzy commented on code in PR #2846:
URL:
https://github.com/apache/incubator-seatunnel/pull/2846#discussion_r978286718
##########
seatunnel-translation/seatunnel-translation-flink/src/main/java/org/apache/seatunnel/translation/flink/utils/TypeConverterUtils.java:
##########
@@ -57,6 +59,7 @@ public class TypeConverterUtils {
BRIDGED_TYPES.put(Float.class, BridgedType.of(BasicType.FLOAT_TYPE,
BasicTypeInfo.FLOAT_TYPE_INFO));
BRIDGED_TYPES.put(Double.class, BridgedType.of(BasicType.DOUBLE_TYPE,
BasicTypeInfo.DOUBLE_TYPE_INFO));
BRIDGED_TYPES.put(Void.class, BridgedType.of(BasicType.VOID_TYPE,
BasicTypeInfo.VOID_TYPE_INFO));
+ BRIDGED_TYPES.put(BigDecimal.class, BridgedType.of(new DecimalType(38,
18), BasicTypeInfo.BIG_DEC_TYPE_INFO));
Review Comment:
@ashulin
Right `TypeInfoDataTypeConverter` not support `BigDecimalTypeInfo` until
now. https://issues.apache.org/jira/browse/FLINK-29373
Another thing, the precision will not lose i think.
--
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]