Skip to content
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 current_timestamp failure due to improper rounding #17455

Merged
merged 1 commit into from
May 12, 2023

Conversation

martint
Copy link
Member

@martint martint commented May 11, 2023

When the number of nanoseconds in the current instant is such that it needs to round up to the nearest millisecond, the calculation doesn't properly compute the carryover.

Release notes

(x) Release notes are required, with the following suggested text:

# General
* Fix failure when invoking `current_timestamp`. ({issue}`17455`)

When the number of nanoseconds in the current instant is such that
it needs to round up to the nearest millisecond, the calculation
doesn't properly compute the carryover.
@cla-bot cla-bot bot added the cla-signed label May 11, 2023
@hashhar hashhar requested a review from vlad-lyutenko May 11, 2023 07:14
@martint
Copy link
Member Author

martint commented May 12, 2023

CI hit #16933

@@ -648,10 +648,13 @@ public static LongTimestampWithTimeZone longTimestampWithTimeZone(long precision
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! :)

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.

4 participants