Skip to content

Commit

Permalink
remove unneeded rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 21, 2024
1 parent 65d7deb commit 17dda41
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions crates/polars-plan/src/plans/optimizer/collapse_and_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 17dda41

Please sign in to comment.