-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: do not remove the first row func if it is a constant | tidb-test=pr/2277 #50020
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #50020 +/- ##
=================================================
- Coverage 70.0660% 55.4132% -14.6528%
=================================================
Files 1443 1554 +111
Lines 419720 586645 +166925
=================================================
+ Hits 294081 325079 +30998
- Misses 105346 238848 +133502
- Partials 20293 22718 +2425
Flags with carried forward coverage won't be shown. Click here to find out more.
|
c035f20
to
674f956
Compare
/test all |
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.
🔢 Self-check
/retest |
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
7040040
to
c917924
Compare
/retest |
/test mysql-test |
@AilinKid: The specified target(s) for
Use In 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 kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, elsa0520, fixdb 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 |
/retest |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
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 to branch |
What problem does this PR solve?
Issue Number: close #38756
Problem Summary:
What changed and how does it work?
Do not remove the first row func if the group by expr is a constant.
For instance, if you try
SELECT DISTINCT SQRT(1) FROM t
As you can see, we accidentally removed the first-row func because the group by expr is a constant 1 and the arg is also 1.
But if you try
SELECT DISTINCT SQRT(2) FROM t
, it works well.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.