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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]