From 2171ab84b05d2368bb65f6bb8851153023b00c42 Mon Sep 17 00:00:00 2001 From: Shivam Malhotra Date: Mon, 13 Nov 2023 14:20:58 -0600 Subject: [PATCH] Review comments --- .../java/io/deephaven/parquet/table/util/TransferUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/util/TransferUtils.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/util/TransferUtils.java index 61e49bbc38c..0a03163e607 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/util/TransferUtils.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/util/TransferUtils.java @@ -22,7 +22,8 @@ public static long epochNanosUTC(@Nullable final LocalDateTime localDateTime) { if (localDateTime == null) { return QueryConstants.NULL_LONG; } - return DateTimeUtils.epochNanos(localDateTime.atZone(ZoneId.of("UTC"))); + return DateTimeUtils.secondsToNanos(localDateTime.toEpochSecond(ZoneOffset.UTC)) + + localDateTime.toLocalTime().getNano(); } /**