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

search_sorted does not handle series sorted with nulls_last=True #15045

Closed
2 tasks done
nameexhaustion opened this issue Mar 14, 2024 · 1 comment
Closed
2 tasks done
Assignees
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@nameexhaustion
Copy link
Collaborator

nameexhaustion commented Mar 14, 2024

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

pl.Series([2, 2, None], dtype=pl.Int8).search_sorted(1, side="left")
# outputs 0 (correct)
pl.Series([2, None, None], dtype=pl.Int8).search_sorted(1, side="left")
# outputs 3 (incorrect)

Log output

No response

Issue description

Expected behavior

assert pl.Series([2, None, None], dtype=pl.Int8).search_sorted(1, side="left") == 0

Installed versions

0.20.15

@nameexhaustion nameexhaustion added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Mar 14, 2024
@orlp
Copy link
Collaborator

orlp commented May 24, 2024

This was fixed in #16447.

@orlp orlp closed this as completed May 24, 2024
@orlp orlp self-assigned this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars
Projects
None yet
Development

No branches or pull requests

2 participants