Skip to content

Commit

Permalink
fix(rust): fix display str for peak_max and top_k (#11657)
Browse files Browse the repository at this point in the history
  • Loading branch information
reswqa authored Oct 11, 2023
1 parent 104ee93 commit 468dd7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/polars-plan/src/dsl/function_expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ impl Display for FunctionExpr {
#[cfg(feature = "top_k")]
TopK(descending) => {
if *descending {
"top_k"
} else {
"bottom_k"
} else {
"top_k"
}
},
Shift(_) => "shift",
Expand Down Expand Up @@ -410,7 +410,7 @@ impl Display for FunctionExpr {
#[cfg(feature = "peaks")]
PeakMin => "peak_min",
#[cfg(feature = "peaks")]
PeakMax => "peak_min",
PeakMax => "peak_max",
#[cfg(feature = "cutqcut")]
Cut { .. } => "cut",
#[cfg(feature = "cutqcut")]
Expand Down

0 comments on commit 468dd7d

Please sign in to comment.