-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
sql: fix sub-second EXTRACT behaves differently from postgres #41069
Conversation
Release note (sql change): sub-second EXTRACT behaves same as postgres. Release justification: low-risk bugfix.
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.
Code LGTM. @jordanlewis will make a decision about whether we will ship this in 19.2
IMHO this is a bug fix, not "sql change", and is even candidate to back port in 19.1. |
It's a bug fix only in that we differ from the spec: it was acting exactly as we intended otherwise. Anyone relying on EXTRACT will see a massive behavior change that will break their app. For that reason I think we should definitely not backport it to 19.1. 19.2 is a possibility because we haven't shipped that yet and so we allow some behavior changes. I'm still lightly on the "it should wait for 20.1" side myself. |
As another example, our |
We've decided to wait for 20.1 to ship this. I'll merge this as soon as the master branch is open, which we expect to be in a week. |
Thanks for the careful review! |
bors r+ |
Build succeeded |
yes I would agree with that (but the phrasing of the change should still emphasize that the previous crdb behavior was unintended — i.e. we consider it as a bug) |
@mjibson, can you please write a sentence or two about how "anyone relying on EXTRACT will see a massive behavior change"? If we call this out as backward-incompatible, we need to say more. |
Is that good? |
Yep. Thanks, Matt. |
Fixes #40683
Release note (sql change): sub-second EXTRACT behaves same as postgres.
Release justification: low-risk bugfix.