Conversation
This was referenced Feb 26, 2026
Merged
Member
Author
fe9288b to
fa751d8
Compare
1bf9024 to
65dfc8e
Compare
fa751d8 to
698b8b1
Compare
537cd6c to
a54fcc3
Compare
1d51229 to
5cf4f64
Compare
3d91f94 to
744ae7f
Compare
5cf4f64 to
724cbbd
Compare
ide
approved these changes
Feb 26, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #477 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 110 110
Lines 16198 16228 +30
Branches 1456 878 -578
==========================================
+ Hits 16198 16228 +30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
Merge activity
|
…ing ordering clauses
744ae7f to
139816d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
This bug was subtle but important, and can be demonstrated best by looking at the new test case added
performs forward pagination with descending order.The bug was that cursor comparison must be derived from both direction but also ASC/DESC of the order bys.
Example:
the issue is that the cursor comparison for this second load would be:
which yields only obj4, which is incorrect.
How
The fix is to determine cursor comparator by both the order by direction and the pagination direction, thus making the cursor from the example above:
The second part of this is to require all orderBys to have the same ordering for pagination, otherwise this new assumption breaks since cursor comparison then would be unable to be done with a single comparator. While there are ways we can handle different order by directions, we'd have to not use a cursor which adds a massive amount of complexity.
A small other fix was to set the
idtiebreaker column order to the same as the other orders.Test Plan
Add new test case.