expression: fix extract day_microsecond/second/minute/hour from datetime#36367
expression: fix extract day_microsecond/second/minute/hour from datetime#36367ti-chi-bot merged 18 commits intopingcap:masterfrom
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. |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 79db9b3 |
|
/run-unit-test |
|
/run-build |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/ea87d2a2e23e0bee829a730d404e66fbe4700c46 |
|
/run-mysql-test |
|
/run-check_dev_2 |
|
/run-mysql-test |
|
The |
|
tests |
|
/run-unit-test |
|
/run-check_dev_2 |
1 similar comment
|
/run-check_dev_2 |
|
are |
|
/run-check_dev_2 |
|
/run-build |
|
/run-mysql-test |
|
very |
|
/run-unit-test |
|
stable |
|
The |
|
/run-unit-test |
|
coordination |
|
/run-unit-test |
|
is |
|
/run-check_dev_2 |
|
very |
|
cherry pick to release-6.2 failed |
|
😩 |
|
efficient |
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
|
🥵 |
|
:) |
What problem does this PR solve?
Issue Number: close #36358
Problem Summary:
In #36297, we made
extract(day_microsecond from datetime)not emit day portion according to the following experiment in MySQL:However it turns out to be a MySQL bug, see the following case in MySQL:
And there is an issue stating this bug in https://bugs.mysql.com/bug.php?id=73240.
What is changed and how it works?
We consider the missing day portion of
extract(day_microsecond from datetime)a bug, and fix it.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.