-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix incorrect date handling in Phoenix 4 & 5 #10749
Conversation
6bad2d4
to
491911a
Compare
plugin/trino-phoenix/src/main/java/io/trino/plugin/phoenix/PhoenixClient.java
Show resolved
Hide resolved
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 % question about comment
Also can we mention "negative dates" in PR title and commit to be more specific?
BTW I notice that Phoenix supports larger DATE range than Trino - do we get reasonable error messages when reading those?
plugin/trino-phoenix/src/main/java/io/trino/plugin/phoenix/PhoenixClient.java
Outdated
Show resolved
Hide resolved
The issue isn't specific to negative dates.
It throws value exceeded messages. |
This fixes incorrect results when a value is older than or equal to 1899-12-31.
491911a
to
5440602
Compare
No description provided.