Skip to content

Distinct criteria query stops working w/ 3.4.3 #3786

@jochenberger

Description

@jochenberger

I have a criteria query that returns distinct results and sorts by an associated entity's property (e.g. owner.name) with a respective PageRequest.
When I upgrade to Spring Boot (Data JPA) 3.4.3, I get ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list from PostgreSQL.
If I downgrade Hibernate to a version before 6.6.6.Final, the error does not occur.

Metadata

Metadata

Assignees

Labels

for: external-projectFor an external project and not something we can fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions