deniskuzZ commented on code in PR #5868: URL: https://github.com/apache/hive/pull/5868#discussion_r2167568900
########## ql/src/java/org/apache/hadoop/hive/ql/io/BatchToRowReader.java: ########## @@ -518,7 +521,8 @@ public static TimestampWritableV2 nextTimestamp(ColumnVector vector, result = (TimestampWritableV2) previous; } TimestampColumnVector tcv = (TimestampColumnVector) vector; - result.setInternal(tcv.time[row], tcv.nanos[row]); + result.set(Timestamp.ofEpochSecond(Math.floorDiv(tcv.time[row], 1000L), tcv.nanos[row], + tcv.isUTC() ? ZoneOffset.UTC : ZoneId.systemDefault())); Review Comment: PS: I have doubts that it works. We have `UTC` hardcoded in `ReaderOptions`: https://github.com/apache/hive/blob/765ce86bb2066fbc7632db8ccf518cfa78c41ace/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java#L71 ```` this.useUTCTimestamp = options.getUseUTCTimestamp(); fileReader.isUTC() would be always true ```` [HIVE-20007](https://issues.apache.org/jira/browse/HIVE-20007): Hive should carry out timestamp computations in UTC -- 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