-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Following discussion in #13278, I've done some exploratory work in npgsql/efcore.pg#1531 on PostgreSQL aggregate functions. Here are some issues I ran into:
- It seems impossible to add support for aggregate functions in GroupBy - GroupingElementExpression is private, etc.
- For top-level (IQueryable) invocations, lots of code needs to be duplicated from relational (see https://github.com/npgsql/efcore.pg/pull/1531/files#r502918288).
- Weak entities in particular seem impossible to support (https://github.com/npgsql/efcore.pg/pull/1531/files#r502918905)
/cc @smitpatel
Interesting candidate translations:
- GROUP_CONCAT for MySQL (see #26838), also see other MySQL functions on that page. In PostgreSQL this is called string_agg.
- json_agg/jsonb_agg on PostgreSQL, JSON_OBJECTAGG on MySQL.
- array_agg on PostgreSQL.
Emill, bachratyg, RafaelSalguero, jcracknell, gradovenko and 5 more