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


##########
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/data/FlinkParquetWriters.java:
##########
@@ -446,8 +446,9 @@ private TimestampDataWriter(ColumnDescriptor desc) {
 
     @Override
     public void write(int repetitionLevel, TimestampData value) {
-      column.writeLong(
-          repetitionLevel, value.getMillisecond() * 1000 + 
value.getNanoOfMillisecond() / 1000);
+      // For microsecond precision timestamps, convert to microseconds
+      long micros = value.getMillisecond() * 1_000L + 
value.getNanoOfMillisecond() / 1_000L;
+      column.writeLong(repetitionLevel, micros);

Review Comment:
   Why is this change?



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