Skip to content

Fix incorrect date handling in Phoenix 4 & 5#10749

Merged
ebyhr merged 1 commit intotrinodb:masterfrom
ebyhr:ebi/phoenix-date-issue
Jan 31, 2022
Merged

Fix incorrect date handling in Phoenix 4 & 5#10749
ebyhr merged 1 commit intotrinodb:masterfrom
ebyhr:ebi/phoenix-date-issue

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented Jan 24, 2022

No description provided.

@cla-bot cla-bot bot added the cla-signed label Jan 24, 2022
@ebyhr ebyhr marked this pull request as draft January 24, 2022 01:53
@ebyhr ebyhr closed this Jan 24, 2022
@ebyhr ebyhr reopened this Jan 24, 2022
@ebyhr ebyhr force-pushed the ebi/phoenix-date-issue branch from 6bad2d4 to 491911a Compare January 24, 2022 02:35
@ebyhr
Copy link
Copy Markdown
Member Author

ebyhr commented Jan 24, 2022

@ebyhr ebyhr marked this pull request as ready for review January 24, 2022 06:15
@ebyhr ebyhr requested a review from hashhar January 27, 2022 14:08
Copy link
Copy Markdown
Member

@hashhar hashhar left a 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?

@ebyhr
Copy link
Copy Markdown
Member Author

ebyhr commented Jan 28, 2022

Also can we mention "negative dates" in PR title and commit to be more specific?

The issue isn't specific to negative dates.

BTW I notice that Phoenix supports larger DATE range than Trino - do we get reasonable error messages when reading those?

It throws value exceeded messages.

This fixes incorrect results when a value
is older than or equal to 1899-12-31.
@ebyhr ebyhr force-pushed the ebi/phoenix-date-issue branch from 491911a to 5440602 Compare January 31, 2022 02:46
@ebyhr ebyhr merged commit e89d5c9 into trinodb:master Jan 31, 2022
@ebyhr ebyhr deleted the ebi/phoenix-date-issue branch January 31, 2022 05:41
@github-actions github-actions bot added this to the 370 milestone Jan 31, 2022
@ebyhr ebyhr mentioned this pull request Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants