[
https://issues.apache.org/jira/browse/CAY-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikita Timofeev closed CAY-2810.
--------------------------------
Resolution: Fixed
*5.0*:
https://github.com/apache/cayenne/commit/edf9a48e08b831c4f3039146841eb665dc240f57
*4.2*:
https://github.com/apache/cayenne/commit/76c406ecc3ca2471f73441f9a28350e86fb39d6b
> Can't use custom operator expression with aggregate functions
> -------------------------------------------------------------
>
> Key: CAY-2810
> URL: https://issues.apache.org/jira/browse/CAY-2810
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library, Database integration
> Affects Versions: 4.2
> Environment: PostgreSQL
> Reporter: Nikita Timofeev
> Assignee: Nikita Timofeev
> Priority: Minor
> Fix For: 4.2.1, 5.0.M1
>
>
> Custom operators are not properly replaced by an alias in the {{group by}}
> section leading to the incorrect SQL.
> For example selecting {{Entity.DATA.operator("->>", String.class,
> "field").alias("field")}} results in the following SQL {{GROUP BY t0.data ->>
> ? field}}
> Note that functions are working fine in that case.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)