From aae12162c74b585fec2f8540c097b61ebfa53ac3 Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Fri, 27 Sep 2024 09:21:05 +0200 Subject: [PATCH] fix: Parallel evaluation of `cumulative_eval` Small typo stemming from #18664. Fixes #18917. --- crates/polars-lazy/src/dsl/eval.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/polars-lazy/src/dsl/eval.rs b/crates/polars-lazy/src/dsl/eval.rs index a3e3a97a589a..92783aa874ee 100644 --- a/crates/polars-lazy/src/dsl/eval.rs +++ b/crates/polars-lazy/src/dsl/eval.rs @@ -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)