-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernate 6.2.4.Final in Quarkus 3.1.1.Final breaks GROUP BY
statements in PostgreSQL when there is a JSON
column type in the association
#33895
Comments
Looks like it was introduced in https://hibernate.atlassian.net/browse/HHH-16409 |
Notice how the GROUP BY p4_0.platform_stream_id vs GROUP BY p5_0.id,
p5_0.created_at,
p5_0.metadata,
p5_0.name,
p5_0.pinned,
p5_0.platform_id,
p5_0.stream_key,
p5_0.stream_key_sortable,
p5_0.unlisted
|
GROUP BY
statements when there is a JSON
column type in the association
GROUP BY
statements when there is a JSON
column type in the associationGROUP BY
statements in PostgreSQL when there is a JSON
column type in the association
Confirmed as a bug in Hibernate ORM and not Quarkus, reported here: https://hibernate.atlassian.net/browse/HHH-16771 It seems related to the fact the application uses the Closing this issue as this is not directly related to Quarkus; feel free to comment if you disagree. |
Also, thanks for reporting @gastaldi! |
@yrodiere thanks! I created on purpose in Quarkus to track when the fix would be available. Perhaps leave it open until the PR that updates Hibernate is created? |
I'm not a fan of tracking things twice, especially when Quarkus has nothing to do with the bug... Also, time has proven that there's a non-negligible chance that we will just forget to update this ticket when the PR that updates the Hibernate ORM dependency is created. So feel free to reopen, but no promise as to tracking. In your place I'd rather convert the column type to JSONB as I suggested and be done with this. |
For the record, converting the column to JSONB isn't a valid workaround, as I explained here |
Looks like my issue reported upstream was rejected; the problem was addressed for top-level queries but not for nested ones. https://hibernate.atlassian.net/browse/HHH-16773 looks like it might address your problem, but is an improvement scheduled for ORM 6.3 (not stable yet). As to the workaround, I'll continue the conversation there. |
Well, what a nice surprise: I did catch this one while hunting down issues that will be fixed by the upgrade to Hibernate ORM 6.4. Reopening for good measure :) |
Describe the bug
Updating the Quarkus Registry to Quarkus 3.1.1.Final breaks the following HQL:
Expected behavior
No errors
Actual behavior
Tests fail with:
How to Reproduce?
git clone https://github.com/quarkusio/registry.quarkus.io
mvn clean compile quarkus:dev
curl http://localhost:8080/client/platforms
Output of
uname -a
orver
macOS m1
Output of
java -version
JDK 17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.1.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.1
Additional information
Quarkus 3.1.0.Final produces the following SQL:
Quarkus 3.1.1.Final produces the following SQL:
The text was updated successfully, but these errors were encountered: