From 17dda41131293a7c89effe75bf5f4ee637d2ee89 Mon Sep 17 00:00:00 2001 From: ritchie Date: Sat, 21 Dec 2024 17:36:34 +0100 Subject: [PATCH] remove unneeded rule --- .../plans/optimizer/collapse_and_project.rs | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/crates/polars-plan/src/plans/optimizer/collapse_and_project.rs b/crates/polars-plan/src/plans/optimizer/collapse_and_project.rs index 266ac6cd3335..4bd0079a4827 100644 --- a/crates/polars-plan/src/plans/optimizer/collapse_and_project.rs +++ b/crates/polars-plan/src/plans/optimizer/collapse_and_project.rs @@ -123,29 +123,6 @@ impl OptimizationRule for SimpleProjectionAndCollapse { None } }, - // Remove double sorts - Sort { - input, - by_column, - slice, - sort_options: - sort_options @ SortMultipleOptions { - maintain_order: false, // `maintain_order=True` is influenced by result of earlier sorts - .. - }, - } => match lp_arena.get(*input) { - Sort { - input: inner, - slice: None, - .. - } => Some(Sort { - input: *inner, - by_column: by_column.clone(), - slice: *slice, - sort_options: sort_options.clone(), - }), - _ => None, - }, _ => None, } }