-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(Query): Fix cascade pagination with 0 offset. #7636
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not now, maybe later, but, we should add one test with a big enough data set to ensure @cascade
works correctly with sorting as well after this fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a test case for the other bug which was solved with this PR, sort not working with @cascade .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will create a ticket for it. Will require a huge dataset for writing test.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @manishrjain, @martinmr, @pawanrawal, and @vvbalaji-dgraph)
This reverts commit 95deb0a. Reverting this commit fixes Alpha panics when using both ordering and @cascade in a query: 2021/06/03 21:27:33 3 0 github.com/dgraph-io/dgraph/x.AssertTruef /ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:107 github.com/dgraph-io/dgraph/worker.intersectBucket /ext-go/1/src/github.com/dgraph-io/dgraph/worker/sort.go:694 github.com/dgraph-io/dgraph/worker.sortWithIndex /ext-go/1/src/github.com/dgraph-io/dgraph/worker/sort.go:286 github.com/dgraph-io/dgraph/worker.processSort.func2 /ext-go/1/src/github.com/dgraph-io/dgraph/worker/sort.go:518 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1371
Fixes DGRAPH-3211.
This PR fixes 2 bugs related to the @cascade directive.
1- Pagination was not working with
Offset = 0
.2- @cascade directive not working with sort queries.
This change is