-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
vtgate: Gen4 only_full_group_by regression #10011
Comments
I rolled out the subquery fix and this issue was not resolved. In fact, I can't even run cc @systay |
Hi @derekperkins! We have worked on the gen4 aggregation planning a lot in |
I just rolled out vtgate based on main and this problem still exists. I forgot to mention that it works on unsharded keyspaces, but fails on sharded keyspaces. The sharding key is not referenced in the query - it's just a hash on a tenant id int. |
Ah, isn't the |
No, it's the group by column + count & sum. I tested using the column name and the alias as the group by, and got the same error both times. This query has worked for several releases prior to v13, and currently works on unsharded keyspaces. |
Oh, now I see. That is weird! I'll see what I can do. |
lol #9889 |
Hey @derekperkins, this issue should be fixed with #10074. Let us know if you're still observing the issue |
I think the Gen4 planner is erroring with using aliases in group by columns.
(1055, "Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column 'Count' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")
This query has worked previously on vtgate and still works on v13 with the V3 planner
I'm rolling out #10007 today, maybe the subquery is fixed there, otherwise that'll get me back to the Gen4 planner where I can do an
explain format=vitess
.The text was updated successfully, but these errors were encountered: