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

fix: fail on WINDOW clause without matching GROUP BY #5431

Merged

Conversation

big-andy-coates
Copy link
Contributor

@big-andy-coates big-andy-coates commented May 20, 2020

Description

A WINDOW clause is only valid if there is matching GROUP BY. Before this change, if user submitted a query without a GROUP BY it would silently be ignored, which is poor UX. With this change an helpful error message is displayed.

See the QTT test for an example.

Testing done

usual

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

A WINDOW clause is only valid if there is no matching GROUP BY. Before this change, if user submitted a query without a GROUP BY it would silently be ignored, which is poor UX. With this change an helpful error message is displayed.
@big-andy-coates big-andy-coates requested a review from a team as a code owner May 20, 2020 17:10
@big-andy-coates
Copy link
Contributor Author

Merging without review as its minor

@big-andy-coates big-andy-coates merged commit 68354d4 into confluentinc:master May 21, 2020
@big-andy-coates big-andy-coates deleted the window_requires_group_by branch May 21, 2020 08:36
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.

1 participant