Skip to content

PostgreSQL: Support GROUP BY ALL and DISTINCT - #2521

Open
BenSatori wants to merge 1 commit into
apache:mainfrom
BenSatori:postgres-group-by-all
Open

BenSatori wants to merge 1 commit into
apache:mainfrom
BenSatori:postgres-group-by-all

Conversation

@BenSatori

Copy link
Copy Markdown
Contributor

PostgreSQL accepts ALL or DISTINCT before a GROUP BY expression list, but the parser currently treats ALL as the complete clause. For example, SELECT a FROM t GROUP BY ALL a fails to parse.

This adds a dialect-gated group-by modifier AST representation and supports both documented forms while preserving the existing bare GROUP BY ALL syntax in other dialects.

PostgreSQL documentation: https://www.postgresql.org/docs/current/sql-select.html#SQL-GROUPBY

This contribution was created with AI assistance.

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