-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Spring Data JPA generates incorrect JPQL query for sorted pagination request with UNION clause #3427
Comments
@Pedroloma thanks for reporting, we'll look into this. |
Thank you for resolving this issue, @christophstrobl . |
Thanks for reaching out. I created #3630 to backport the fix into 3.2 and 3.3 development lines. |
Make sure to append space after order by clause and fix alias detection for wrapped sub select. Also make sure to ignore alias used in subselect so they do not conflict with root ones. Render order by only on full select if set operator is present in EQL. Closes #3630 Original pull request: #3429 See #3427
Make sure to append space after order by clause and fix alias detection for wrapped sub select. Also make sure to ignore alias used in subselect so they do not conflict with root ones. Render order by only on full select if set operator is present in EQL. Closes #3630 Original pull request: #3429 See #3427
After updating my app from 3.0.8 to 3.1.10, I get an exception for a JPL with UNION clauses, when the query is pageable and sorted.
I've created a GitHub repo where you can reproduce the issue: https://github.com/Pedroloma/JpaWithUnionAndPageableAndSortedApplication
I think, that this issue could be related to this other one: #2969
This is the exception thrown and its stack trace:
Please, let me know if you guys need some extra information.
Thanks in advance.
The text was updated successfully, but these errors were encountered: