-
Notifications
You must be signed in to change notification settings - Fork 540
Support FILTER/WHERE
and ORDER BY
in aggregate expressions in Postgres dialect
#4703
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
Comments
FILTER/WHERE
and ORDER BY
in aggregate expressionsFILTER/WHERE
and ORDER BY
in aggregate expressions in Postgres dialect
There are several issues to be considered 🌵
|
this limitation makes me reconsider using sqldelight in the backend. |
maybe just allow string_agg ? doesnt that just return a text? |
The The rest of the syntax should be possible to add, as is similar to the existing WINDOW function syntax - I will take a look to see if both |
SQLDelight Version
2.0.0
SQLDelight Dialect
Postgres
Describe the Bug
The following query does not compile:
:generateMainSqlDelightInterface
fails with:whereas the equivalent query works fine in Postgres.
Ideally the whole specification of aggregate expressions would be supported.
Stacktrace
No response
The text was updated successfully, but these errors were encountered: