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

Support filter expression in AggregateExpr(Selective Aggregates) #5608

Closed
mingmwang opened this issue Mar 15, 2023 · 3 comments · Fixed by #5868
Closed

Support filter expression in AggregateExpr(Selective Aggregates) #5608

mingmwang opened this issue Mar 15, 2023 · 3 comments · Fixed by #5868
Labels
enhancement New feature or request

Comments

@mingmwang
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@alamb
Copy link
Contributor

alamb commented Mar 15, 2023

What is an example of such a query? Maybe is it what @poonai proposed adding in #3473 / #2214?

@mingmwang
Copy link
Contributor Author

I think this is coming from the ANSI SQL (Selective Aggregates).

https://modern-sql.com/feature/filter
https://popsql.com/learn-sql/postgresql/how-to-use-filter-to-have-multiple-counts-in-postgresql

PostgreSQL, SparkSQL and FlinkSQL all support this usage.

@mingmwang mingmwang changed the title Support filter expression in AggregateExpr Support filter expression in AggregateExpr(Selective Aggregates) Mar 16, 2023
@alamb
Copy link
Contributor

alamb commented Mar 16, 2023

I think it is a dupe of #2214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants