Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Sep 27, 2024
1 parent f1508b5 commit e4af44f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/polars-expr/src/expressions/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,11 @@ impl WindowExpr {
(WindowMapping::GroupsToRows, AggState::AggregatedList(_))
if gb.get_groups().is_sorted_flag() =>
{
Ok(MapStrategy::Explode)
if let GroupsProxy::Idx(_) = gb.get_groups() {
Ok(MapStrategy::Map)
} else {
Ok(MapStrategy::Explode)
}
},
(WindowMapping::GroupsToRows, AggState::AggregatedList(_)) => Ok(MapStrategy::Map),
// no aggregations, just return column
Expand Down

0 comments on commit e4af44f

Please sign in to comment.