George Gastaldi I’ve created https://hibernate.atlassian.net/browse/HHH-16770 for this issue. Note that the problem doesn’t seem to be related to a JSON type field used in the GROUP BY clause, rather we should not expand the group by clause in a subquery predicate since the selection itself is not expanded. |