Skip to content

Commit

Permalink
fix: Parallel evaluation of cumulative_eval
Browse files Browse the repository at this point in the history
Small typo stemming from pola-rs#18664.

Fixes pola-rs#18917.
  • Loading branch information
coastalwhite committed Sep 27, 2024
1 parent a7845c4 commit aae1216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/polars-lazy/src/dsl/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ pub trait ExprEvalExtension: IntoExpr + Sized {
(1..c.len() + 1)
.into_par_iter()
.map(|len| {
let s = c.slice(0, len);
if (len - s.null_count()) >= min_periods {
let c = c.slice(0, len);
if (len - c.null_count()) >= min_periods {
let df = c.clone().into_frame();
let out = phys_expr.evaluate(&df, &state)?.into_column();
finish(out)
Expand Down

0 comments on commit aae1216

Please sign in to comment.