Skip to content

Commit

Permalink
drop GroupTuples in window exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 1, 2021
1 parent 8a74bb2 commit 286ccf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions polars/polars-lazy/src/physical_plan/expressions/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ impl PhysicalExpr for WindowExpr {
Ok(DataFrame::new_no_checks(cols))
}
}?;
// drop the group tuples before we do the left join to reduce allocated memory.
drop(gb);

// 3. get the join tuples and use them to take the new Series
let out_column = out.select_at_idx(out.width() - 1).unwrap();
Expand Down

0 comments on commit 286ccf0

Please sign in to comment.