pvary commented on code in PR #14245:
URL: https://github.com/apache/iceberg/pull/14245#discussion_r2405269223


##########
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/FlinkTypeToType.java:
##########
@@ -137,12 +137,20 @@ public Type visit(TimeType timeType) {
 
   @Override
   public Type visit(TimestampType timestampType) {
-    return Types.TimestampType.withoutZone();
+    if (timestampType.getPrecision() == 9) {
+      return Types.TimestampNanoType.withoutZone();
+    } else {
+      return Types.TimestampType.withoutZone();
+    }

Review Comment:
   Should we throw an exception when the precision is not 9 or 6?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to