pvary commented on code in PR #11348:
URL: https://github.com/apache/iceberg/pull/11348#discussion_r1812936226
##########
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/data/FlinkParquetReaders.java:
##########
@@ -411,6 +416,43 @@ public DecimalData read(DecimalData ignored) {
}
}
+ private static class NanosToTimestampReader
+ extends ParquetValueReaders.UnboxedReader<TimestampData> {
+ NanosToTimestampReader(ColumnDescriptor desc) {
+ super(desc);
+ }
+
+ @Override
+ public TimestampData read(TimestampData ignored) {
+ long value = readLong();
+ return TimestampData.fromInstant(Instant.ofEpochSecond(0, value));
Review Comment:
How could we cross check, that the Spark write/Flink read and Flink
write/Spark read is correctly working?
Are we sure that this is the expected data format?
--
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]