Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jan 19, 2025
1 parent 4d7f144 commit 893eece
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/polars-mem-engine/src/executors/projection_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ fn window_evaluate(
state: &ExecutionState,
window: PlHashMap<String, Vec<IdAndExpression>>,
) -> PolarsResult<Vec<Vec<(u32, Column)>>> {
if window.is_empty() {
return Ok(vec![]);
}
let n_threads = POOL.current_num_threads();

let max_hor = window.values().map(|v| v.len()).max().expect("length > 0");
let max_hor = window.values().map(|v| v.len()).max().unwrap_or(0);
let vert = window.len();

// We don't want to cache and parallel horizontally and vertically as that keeps many cache
Expand Down

0 comments on commit 893eece

Please sign in to comment.