executor: buildWindow cannot call typeInfer twice (#30773)#30863
executor: buildWindow cannot call typeInfer twice (#30773)#30863ti-chi-bot merged 10 commits intopingcap:release-5.1from
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
[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 |
|
@fzhedu you're already a collaborator in bot's repo. |
|
@ti-srebot: PR needs rebase. DetailsInstructions 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/test-infra repository. |
|
/rebuild |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/587b9ee7dea3df6163fd6e599e74cfdf494a18f7 |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 587b9ee |
|
/merge |
cherry-pick #30773 to release-5.1
You can switch your code base to this Pull Request by using git-extras:
# In tidb repo: git pr https://github.com/pingcap/tidb/pull/30863After apply modifications, you can push your change to this PR via:
What problem does this PR solve?
Issue Number: close #30402
Problem Summary: build window desc call TypeInfer twice, which change the return type incorrectly. For example, avg() in window func, a int type is first inferred to decimal(15,4), then inferred to decimal(19,8), which breaks compatibility with mysql.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note