-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Change JVM time zone in tests to better test corner cases #10128
Change JVM time zone in tests to better test corner cases #10128
Conversation
(i reported this as https://issues.apache.org/jira/browse/HIVE-18925 ...) @electrum @dain @haozhun @losipiuk is it something we could work around? |
prestodb/presto-hive-apache#31 copies |
a29731c
to
00b4dc7
Compare
0e5ae6a
to
bc3f445
Compare
97ae8ed
to
3da6538
Compare
38f5a0f
to
c47e4e5
Compare
So far this change found: |
c47e4e5
to
8c158dd
Compare
I am fine with this one. It does not solve all the issues. But it makes our test coverage slightly less forgiving. This is good. |
When I do
|
I didn't look at this carefully. But I feel like all the ones I listed should be changed. If I were you, I would read each instance to get a basic understanding of their intended use. I'll then change them (most likely all), and go ahead if all tests pass after the change. I don't think time will give us more understanding as to what needs to be changed. And I think a mixed state will cause confusions. |
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.
Looks good assuming nothing significant comes up when you address my concern about the occurrences of Kathmandu that I listed.
0c6d4b3
to
b175a28
Compare
1bb8be0
to
9605ab1
Compare
227172d
to
446478c
Compare
8f085af
to
dc89b6a
Compare
Ready for re-review. |
c9c42eb
to
0e47eea
Compare
What is the intent behind "Upgrade Presto hive-apache to 1.2.2-2"? A description in the body of the commit will help. |
All but "Upgrade Presto hive-apache to 1.2.2-2" and "Simplify SqlTimestamp construction in tests" looks good. For "Simplify SqlTimestamp construction in tests", I don't quite like the state after your commit. I would like to see it simplified, whereas the commit adds a new one without removing the existing ones. Here is my proposal. (I would prefer java.time in tests. But I don't mind if you go with joda.) "Existing" in the notes below represents the current state of this PR.
These will be removed:
|
780b798
to
6680d8c
Compare
@haozhun thanks for your review!
Added this to the cmt msg:
All simplifiable caller sites is what got simplified in this commit. I improved the test code more, but didn't implement your proposal yet. At least, now there are no more overloads than it used to be. I assume this removes the last obstacle for this PR and this cleanup just sits on the TODO list a little longer. |
This includes a change that prevents failure when JVM zone had change on 1970-01-01.
See prestodb#10078 for discussion.
6680d8c
to
ade4339
Compare
This changes default JVM time zone in tests from
Asia/Katmandu
toAmerica/Bahia_Banderas
. The latter zone has more 'nice' features, see #10078 for context and explanation.Note: this doesn't fix #10078 fully. We should change default session zone as well (
TestingSession
defaults to UTC).