vrozov commented on code in PR #5868: URL: https://github.com/apache/hive/pull/5868#discussion_r2167455228
########## 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: > I've attached here the TreeReaderFactory snippet that shows how UTC flag is passed to the column vector. So your statement is not valid There are no changes to `TimestampTreeReader` in the PR and how `isUTC` flag is set there, so the statement "The PR approach works with existing way how `TimestampTreeReader` sets isUTC flag in `TimestampColumnVector`" is valid. It is necessary to set `isUTC` flag in `TimestampColumnVector` on initialization or write, not on read and especially not to use a different flag that may be different from what `TimestampColumnVector` uses. -- 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