-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-26982 Fix for Select * from a table containing timestamp column … #4265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
llap-server/src/java/org/apache/hadoop/hive/llap/io/decode/GenericColumnVectorProducer.java
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
Outdated
Show resolved
Hide resolved
llap-server/src/java/org/apache/hadoop/hive/llap/io/decode/GenericColumnVectorProducer.java
Outdated
Show resolved
Hide resolved
…with default defined using TIMESTAMPLOCALTZ fails with error " ORC doesn't handle primitive category TIMESTAMPLOCALTZ"
|
I have some extra thoughts about the tests: There are two changes in the code: I think one for generic execution and one for vectorised. But I think the test only tests one of them. And the test tests a lot of column types. But only the local timestamp column is affected on the change. I would suggest creating (or finding an existing) vectorised test as well and also check if is there an existing checking all type of columns like test to extend. Or, if the test is necessary to reproduce the issue, I would love seeing the ticket number on the top of the qtest file, as a comment. |
|
Kudos, SonarCloud Quality Gate passed! |
This is not the case. During the test both code changes are executed /tested. Ticket number is visible in git history for this file. It is very rare that a q test file contains the ticket number, I don't see any benefit. |
deniskuzZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
…h TIMESTAMPLOCALTZ type default (Zoltan Ratkai, reviewed by Attila Turoczy, Laszlo Bodor, Denys Kuzmenko) Closes apache#4265
…h TIMESTAMPLOCALTZ type default (Zoltan Ratkai, reviewed by Attila Turoczy, Laszlo Bodor, Denys Kuzmenko) Closes apache#4265








What changes were proposed in this pull request?
This PR fixes issue : "ORC doesn't handle primitive category TIMESTAMPLOCALTZ".
Why are the changes needed?
Fix TIMESTAMPLOCALTZ type handling.
Does this PR introduce any user-facing change?
Yes, if user has a table containing timestamp column with default defined using TIMESTAMPLOCALTZ it fixes the ORC doesn't handle primitive category TIMESTAMPLOCALTZ" exception-
How was this patch tested?
Jenkins pipeline.