Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16771 (
https://hibernate.atlassian.net/browse/HHH-16771?atlOrigin=eyJpIjoiZTUyMT...
)
Re: group by someEntity where entity has json (not jsonb) columns results in failure on
PostgreSQL (
https://hibernate.atlassian.net/browse/HHH-16771?atlOrigin=eyJpIjoiZTUyMT...
)
Hi Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) , I saw the quarkus issue and already opened
https://hibernate.atlassian.net/browse/HHH-16770.
Now, in the case of a group by used in a subquery there is another problem: we’re expading
the columns used for grouping while we never expand the selection since we are not in a
top-level context. This is an issue and I’m working on a fix.
The problem with the json type does exist for top-level queries though, and it might not
be as easy as limiting the group by to the selected columns. Suppose we have this query:
select b from EntityB b group by b , for which Hibernate will expand the b entity valued
path in the selection to all columns. Now, we need to also expand the group by expression
to all columns to avoid any not a group by expression errors on all DBs.
(
https://hibernate.atlassian.net/browse/HHH-16771#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16771#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:62413c2 )