Closed matobet closed 8 months ago
There are several issues to be considered šµ
this limitation makes me reconsider using sqldelight in the backend. We have a datamodel that relies on quite a bit of joins and the array_agg function would make many use cases 3x+ faster...
maybe just allow string_agg ? doesnt that just return a text?
The string_agg
is defined already but is limited to a function call such as:
SELECT string_agg(city_name, ',') FROM City;
to concatenate strings and place a separator between them.
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 string_agg
and array_agg
can be š fleshed out to be useful. Don't know until I try though.
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