You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-paimon/src/main/java/org/apache/seatunnel/connectors/seatunnel/paimon/data/PaimonTypeMapper.java
+11-3
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@
36
36
importcom.google.auto.service.AutoService;
37
37
importlombok.extern.slf4j.Slf4j;
38
38
39
+
importjava.util.Objects;
39
40
importjava.util.concurrent.atomic.AtomicInteger;
40
41
41
42
@Slf4j
@@ -141,7 +142,10 @@ public DataType reconvert(Column column) {
141
142
returnDataTypes.DATE();
142
143
caseTIME:
143
144
IntegertimeScale = column.getScale();
144
-
if (timeScale != null && timeScale > TimeType.MAX_PRECISION) {
145
+
if (Objects.isNull(timeScale)) {
146
+
timeScale = TimeType.DEFAULT_PRECISION;
147
+
}
148
+
if (timeScale > TimeType.MAX_PRECISION) {
145
149
timeScale = TimeType.MAX_PRECISION;
146
150
log.warn(
147
151
"The time column {} type time({}) is out of range, "
@@ -155,8 +159,10 @@ public DataType reconvert(Column column) {
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-paimon/src/main/java/org/apache/seatunnel/connectors/seatunnel/paimon/sink/PaimonSink.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-paimon/src/main/java/org/apache/seatunnel/connectors/seatunnel/paimon/sink/PaimonSinkFactory.java
0 commit comments