deniskuzZ commented on code in PR #5868:
URL: https://github.com/apache/hive/pull/5868#discussion_r2164589188


##########
ql/src/java/org/apache/hadoop/hive/ql/io/orc/RecordReaderImpl.java:
##########
@@ -73,6 +76,12 @@ protected RecordReaderImpl(ReaderImpl fileReader,
     } else {
       batch = this.schema.createRowBatch();
     }
+    // Workaround for ORC not initializing TimestampColumnVector properly
+    for (int i = 0; i < batch.numCols; ++i) {
+      if (batch.cols[i] instanceof TimestampColumnVector) {
+        ((TimestampColumnVector) batch.cols[i]).setIsUTC(fileReader.isUTC());

Review Comment:
   do we need the same workaround for non-orc readers like parquet? 



-- 
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

Reply via email to