Skip to content
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

Allow ambiguous column names in GroupBy and Having clauses #2271

Closed
wants to merge 7 commits into from

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Jan 17, 2024

For some reason, MySQL allows ambiguous column names in GroupBy and Having clauses.
They just pick the left most column that matches.

This should fix 14 sqllogictests.

Correctness: dolthub/dolt#7356

@nicktobey
Copy link
Contributor

The MySQL behavior is a bit more complicated than that: I wrote about it here: dolthub/dolt#6676

@nicktobey
Copy link
Contributor

I wouldn't worry about fully matching the behavior described in the link though. As long as this only fixes sqllogictests and doesn't break any, then it makes us more correct and that's what matters.

@jycor jycor closed this Jan 31, 2024
@jycor jycor deleted the james/groupbyhaving branch January 31, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants