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

Add support for GROUP BY DISTINCT #11670

Closed
lukaseder opened this issue Mar 18, 2021 · 1 comment
Closed

Add support for GROUP BY DISTINCT #11670

lukaseder opened this issue Mar 18, 2021 · 1 comment

Comments

@lukaseder
Copy link
Member

A future version of PostgreSQL might implement the standard SQL GROUP BY DISTINCT clause, which helps remove redundant GROUPING SETS:
https://www.postgresql.org/message-id/E1lMwMS-0007AP-Qu%40gemulon.postgresql.org

Let's add support for it in jOOQ, and investigate what other dialects support it natively (given that it's standard SQL), or how it can be emulated, see #11669

@lukaseder
Copy link
Member Author

There's no need to add support for GROUP BY ALL in the API, as that is equivalent to GROUP BY (we also don't support SELECT ALL or UNION DISTINCT). However, the parser can also parse GROUP BY ALL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant