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

[Rust] [DataFusion] Add support for the SQL HAVING clause #27317

Closed
asfimport opened this issue Jan 29, 2021 · 1 comment
Closed

[Rust] [DataFusion] Add support for the SQL HAVING clause #27317

asfimport opened this issue Jan 29, 2021 · 1 comment

Comments

@asfimport
Copy link
Collaborator

We do not yet have support for the SQL HAVING clause. HAVING is used to filter post-aggregation, typically against an aggregated column. For example:

SELECT c1, MAX(c2) FROM t GROUP BY c1 HAVING MAX(c2) > 100

HAVING expressions need not reference aggregates in the SELECT, for example:

SELECT c1, MAX(c2) FROM t GROUP BY c1 HAVING MIN(c2) > 100

HAVING expressions need not filter on aggregated columns, for example:

SELECT c1, MAX(c2) FROM t GROUP BY c1 HAVING c1 > 100

Lastly, HAVING expressions need not be used in conjunction with a GROUP BY, for example:

SELECT MAX(c1) FROM t HAVING MAX(c1) > 100

Reporter: Daniel Russo / @drusso
Assignee: Daniel Russo / @drusso

PRs and other links:

Note: This issue was originally created as ARROW-11431. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Andrew Lamb / @alamb:
Issue resolved by pull request 9364
#9364

@asfimport asfimport added this to the 4.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant