-
Notifications
You must be signed in to change notification settings - Fork 6k
types/time: invalid timestamp during DST spring forward fixed to next valid ts instead of zero date. #61533
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
types/time: invalid timestamp during DST spring forward fixed to next valid ts instead of zero date. #61533
Conversation
… valid ts instead of zero date.
Skipping CI for Draft Pull Request. |
Hi @mjonss. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/retest |
/retest |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #61533 +/- ##
================================================
+ Coverage 73.0870% 73.5834% +0.4964%
================================================
Files 1730 1730
Lines 481184 481217 +33
================================================
+ Hits 351683 354096 +2413
+ Misses 107956 105617 -2339
+ Partials 21545 21504 -41
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
A nice fix! Could you add more test cases like :
- where column date_add(<invalid_time>, interval 1 day)
- where date_add(column, interval 1 day) <invalid_time>
/retest |
/retest |
store := testkit.CreateMockStore(t) | ||
tk := testkit.NewTestKit(t, store) | ||
tk.MustExec("use test") | ||
tk.MustExec("create table t (id int, ts timestamp)") |
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.
I assume timestamp
and timestamp(6)
are expected to behave the same?
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.
Yes. I just tested manually and it is the same, but would prefer to not include timestamp(6)
in this test. I am currently working on a more covering tests for timestamp, which also includes timestamp with fractions, which should cover this as well.
This warning:
I would prefer to keep things as similar to MySQL as possible. However the added info here is useful. |
…stead-of-zero-date-61335
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dveeden, qw4990 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #61335
Problem Summary:
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.