deniskuzZ commented on code in PR #5241: URL: https://github.com/apache/hive/pull/5241#discussion_r1601865707
########## ql/src/java/org/apache/hadoop/hive/ql/io/parquet/timestamp/NanoTimeUtils.java: ########## @@ -100,12 +103,23 @@ public static Timestamp getTimestamp(NanoTime nt, ZoneId targetZone, boolean leg julianDay--; } - JulianDate jDateTime; - jDateTime = JulianDate.of((double) julianDay); + JulianDate jDateTime = JulianDate.of((double) julianDay); + LocalDateTime localDateTime; + int leapYearDateAdjustment = 0; + try { + localDateTime = jDateTime.toLocalDateTime(); + } catch (DateTimeException e) { + if (e.getMessage().contains(TimestampTZUtil.NOT_LEAP_YEAR) && legacyConversion) { + leapYearDateAdjustment = 1; Review Comment: better use `2` to avoid retry after the timezone conversion -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org