Jira issue originally created by user jison:
the Aggregate Expressions "AVG" | "MAX" | "MIN" | "SUM", should be not only followed by StateFieldPathExpression , but also SimpleArithmeticExpression,
i found it can not execute dql like
select sum(c.quantity * c.price) total_price from cart c
i think, this should be a bug
Comment created by @guilhermeblanco:
You are totally right.
I fixed on trunk repository. Thanks a lot for pointing out this issue. =)
Comment created by @beberlei:
Merged into 2.0.x also
Issue was closed with resolution "Fixed"