-
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
Wrong query result when session variable is used as group by item #27106
Comments
In v4.x, plan is ok.
In master, groupby item of HashAgg_13 is wrong. Guess we pruned that column unexpectedly. Check here (make group by item be constant one) and here (replace column in groupby item to setvar expr).
|
@guo-shaoge @time-and-fate can we verify and close this issue since #27093 was already fixed and closed? |
I'll close it after #27370 merged. I closed #27093 because it's duplicated with this one. |
4.0.16 reject this one in triage |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master/5.1.0
The text was updated successfully, but these errors were encountered: