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(rust): Do not reverse null indices in descending arg_sort #15974

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

wence-
Copy link
Collaborator

@wence- wence- commented Apr 30, 2024

Since nulls compare equal, a stable sort should select the nulls in
the order of the input series, independently of whether we asked for a
descending or ascending sort of the Series.

Since nulls compare equal, a stable sort should select the nulls in
the order of the input series, independently of whether we asked for a
descending or ascending sort of the Series.

- Closes pola-rs#9940
@orlp orlp merged commit 075817b into pola-rs:main Apr 30, 2024
24 of 25 checks passed
@wence- wence- deleted the wence/fix/9940 branch April 30, 2024 16:19
Wouittone pushed a commit to Wouittone/polars that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a sort that is stable with regards to null values
2 participants