-
-
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
fix: Fix Expr.over
with order_by
did not take effect if group keys were sorted
#18947
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,9 +150,7 @@ fn test_sort_by_in_groups() -> PolarsResult<()> { | |
col("cars"), | ||
col("A") | ||
.sort_by([col("B")], SortMultipleOptions::default()) | ||
.implode() | ||
.over([col("cars")]) | ||
.explode() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This query internally created a DataFrame of height 5 containing a |
||
.alias("sorted_A_by_B"), | ||
]) | ||
.collect()?; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GroupsProxy::Idx
must be explicitly mapped back to the row positions regardless of whether it was sorted