-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
merge_sorted
produces incorrect results when merge column is sorted in descending order
#21464
Comments
To me it looks like the issue might arise because |
It is "sort of" documented in the docstring:
We should clarify that this means in ascending order. |
Opened #21501 |
I am pretty sure merge_sorted in the new streaming engine accepts both ways. There are also issues in merge_sorted about nulls and whether they are allowed. |
I get the same results with new streaming engine.
I filed a feature request #21511 |
Checks
Reproducible example
When merging two sorted lazyframes or dataframes (descending order), polars produces incorrect results.
Log output
Issue description
Copied the example from https://docs.pola.rs/api/python/dev/reference/lazyframe/api/polars.LazyFrame.merge_sorted.html
Expected behavior
I expect
Installed versions
The text was updated successfully, but these errors were encountered: