-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
QuerydslMongoPredicateExecutor findAll() tries to get offset for a Pageable.unpaged() #3751
Comments
What would you expect as a result from such a call? |
My expectation is that if the provided pageable is unpaged, then it would not apply pagination to the result and instead it would provide me an unpaged page with the available contents. The So as it is right now yes in can take a Pageable.unpaged() but it will always result in a java.lang.UnsupportedOperationException, therefore it doesn't seem useful to me (unless I am missing something :) ) |
Thanks a lot. By checking the other implementations, |
Hi,
When passing a Pageable.unpaged() to findAll(Predicate predicate, Pageable pageable) in the QuerydslMongoPredicateExecutor, it will try to call the pageable.getOffset() which will to a java.lang.UnsupportedOperationException.
I suppose this is a bug because the documentation of the findAll mentions that the pageable can be unpaged.
The text was updated successfully, but these errors were encountered: