From 451f5ac2ecb366fc605f14b75f97ec963b65a8ad Mon Sep 17 00:00:00 2001 From: Weijie Guo Date: Wed, 11 Oct 2023 16:08:09 +0800 Subject: [PATCH] fix(rust): fix display str for peak_max and top_k --- crates/polars-plan/src/dsl/function_expr/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/polars-plan/src/dsl/function_expr/mod.rs b/crates/polars-plan/src/dsl/function_expr/mod.rs index da6869a2cca8..042c2df95a35 100644 --- a/crates/polars-plan/src/dsl/function_expr/mod.rs +++ b/crates/polars-plan/src/dsl/function_expr/mod.rs @@ -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", @@ -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")]