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

fix(sort): Fix multi-sort with nils #7432

Merged
merged 7 commits into from
Feb 17, 2021
Merged

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Feb 15, 2021

Multi-sort with some predicates with null values was broken (Discuss post). This PR fixes it.

Tests are also added for multi-sort with null values.


This change is Reviewable

Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain and @vvbalaji-dgraph)

@ahsanbarkati ahsanbarkati merged commit 2c7de57 into master Feb 17, 2021
ahsanbarkati added a commit that referenced this pull request Feb 17, 2021
Fix the behavior of multi-sort. All the nil values are appended at the end of
the result irrespective of ascending or descending sort. This change also
fixes a bug due to not appending the nil values in the values list,
corresponding to the UIDs appended in the UID list with nil predicates.

(cherry picked from commit 2c7de57)
aman-bansal pushed a commit that referenced this pull request Feb 17, 2021
Fix the behavior of multi-sort. All the nil values are appended at the end of
the result irrespective of ascending or descending sort. This change also
fixes a bug due to not appending the nil values in the values list,
corresponding to the UIDs appended in the UID list with nil predicates.

(cherry picked from commit 2c7de57)
@ahsanbarkati ahsanbarkati deleted the ahsan/fix-multisort branch February 23, 2021 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants