beliefer commented on a change in pull request #34984:
URL: https://github.com/apache/spark/pull/34984#discussion_r775849298
##########
File path:
sql/core/src/main/java/org/apache/spark/sql/execution/datasources/orc/OrcAtomicColumnVector.java
##########
@@ -111,10 +103,8 @@ public int getInt(int rowId) {
@Override
public long getLong(int rowId) {
int index = getRowIndex(rowId);
- if (isTimestamp) {
+ if (isTimestamp && timestampData != null) {
Review comment:
This happens when read timestamp_ntz as timestamp_ltz.
##########
File path:
sql/core/src/main/java/org/apache/spark/sql/execution/datasources/orc/OrcAtomicColumnVector.java
##########
@@ -111,10 +103,8 @@ public int getInt(int rowId) {
@Override
public long getLong(int rowId) {
int index = getRowIndex(rowId);
- if (isTimestamp) {
+ if (isTimestamp && timestampData != null) {
Review comment:
This happens when read `timestamp_ntz` as `timestamp_ltz`.
--
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]