-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
SQL: HAVING without GROUP BY #37051
Labels
Comments
Pinging @elastic/es-search |
For a query like
|
costin
added a commit
to costin/elasticsearch
that referenced
this issue
Sep 13, 2019
Handle queries with implicit GROUP BY where the aggregation is not in the projection/SELECT but inside the filter/HAVING such as: SELECT 1 FROM x HAVING COUNT(*) > 0 The engine now properly identifies the case Fix elastic#37051
costin
added a commit
that referenced
this issue
Sep 17, 2019
Handle queries with implicit GROUP BY where the aggregation is not in the projection/SELECT but inside the filter/HAVING such as: SELECT 1 FROM x HAVING COUNT(*) > 0 The engine now properly identifies the case and handles it accordingly. Fix #37051
costin
added a commit
that referenced
this issue
Sep 17, 2019
Handle queries with implicit GROUP BY where the aggregation is not in the projection/SELECT but inside the filter/HAVING such as: SELECT 1 FROM x HAVING COUNT(*) > 0 The engine now properly identifies the case and handles it accordingly. Fix #37051 (cherry picked from commit fa53ca0) (cherry picked from commit 683b5fd)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error message is confusing.
The text was updated successfully, but these errors were encountered: