expression: fix that str_to_date returns different result on no zero date sql mode.#39316
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
/run-all-tests |
| } | ||
| result.SetNull(i, true) | ||
| continue | ||
| } |
There was a problem hiding this comment.
Looks like non-vector mode has already fix this?
There was a problem hiding this comment.
Looks like non-vector mode has already fix this?
Yes, the non-vector mode ignores the value of hasNoZeroDateMode.
| tk.MustExec("CREATE TABLE `sun` ( `dest` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;") | ||
| tk.MustExec("insert into sun values('20231020');") | ||
| tk.MustExec("set @@sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';") | ||
| tk.MustQuery(`select str_to_date(substr(dest,1,6),'%H%i%s') from sun;`).Check(testkit.Rows("20:23:10")) |
There was a problem hiding this comment.
Please test both vector and non-vector execution.
There was a problem hiding this comment.
Please test both vector and non-vector execution.
done.
|
/merge |
|
@mengxin9014: DetailsIn response to this:
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 ti-community-infra/tichi repository. |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 3a44b62 |
|
In response to a cherrypick label: new pull request created: #39353. |
|
In response to a cherrypick label: new pull request created: #39354. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created: #39355. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
|
/label needs-cherry-pick-release-6.2 |
|
/label needs-cherry-pick-release-6.3 |
|
/label needs-cherry-pick-release-6.4 |
|
In response to a cherrypick label: new pull request created: #39373. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created: #39374. |
|
In response to a cherrypick label: new pull request created: #39375. |
What problem does this PR solve?
Issue Number: close #39146
Problem Summary:
What is changed and how it works?
fix that str_to_date returns different result on no zero date sql mode
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.