Skip to content
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

Order by NULLS FIRST/LAST no longer supported #2976

Closed
rvullriede opened this issue May 24, 2023 · 2 comments
Closed

Order by NULLS FIRST/LAST no longer supported #2976

rvullriede opened this issue May 24, 2023 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@rvullriede
Copy link

After upgrading to Spring Boot 3.1.0 (which pulls Spring Data JPA 3.1 via Spring Data 2023.0) I've encountered the following exception:
org.springframework.data.jpa.repository.query.BadJpqlGrammarException: Line 1:56 mismatched input 'NULLS' expecting {<EOF>, ',', EXCEPT, FETCH, INTERSECT, LIMIT, OFFSET, UNION}; Bad JPQL grammar [SELECT a FROM AppRelease a ORDER BY a.dateReleased DESC NULLS LAST]

Since this worked before I suspect this is due to the new JQL/HQL query parser introduced in #2814 .

While such a query is not (yet, see jakartaee/persistence#76) part of the JPA standard, it's supported by Hibernate (not sure about other implementations) and its a regression compared to other versions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 24, 2023
@mp911de mp911de added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels May 24, 2023
@mp911de
Copy link
Member

mp911de commented May 24, 2023

That's a duplicate of #2962

@rvullriede
Copy link
Author

Ah, sorry for the noise. Must have missed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants