From 21e2a86d5f89497f5c3b782d8e3cddb8c88e7968 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Wed, 24 Jan 2024 16:20:45 +0800 Subject: [PATCH] fix compilation Signed-off-by: Richard Chien --- src/expr/core/src/window_function/call.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/expr/core/src/window_function/call.rs b/src/expr/core/src/window_function/call.rs index 027da1ef6214e..ee8df62ee5df6 100644 --- a/src/expr/core/src/window_function/call.rs +++ b/src/expr/core/src/window_function/call.rs @@ -154,11 +154,7 @@ pub struct RowsFrameBounds { pub end: FrameBound, } -impl FrameBoundsImpl for RowsFrameBounds { - fn validate(&self) -> Result<()> { - FrameBound::validate_bounds(&self.start, &self.end) - } - +impl RowsFrameBounds { /// Check if the `ROWS` frame is canonical. /// /// A canonical `ROWS` frame is defined as: @@ -194,6 +190,12 @@ impl FrameBoundsImpl for RowsFrameBounds { } } +impl FrameBoundsImpl for RowsFrameBounds { + fn validate(&self) -> Result<()> { + FrameBound::validate_bounds(&self.start, &self.end) + } +} + #[derive(Display, Debug, Clone, Eq, PartialEq, Hash, EnumAsInner)] #[display(style = "TITLE CASE")] pub enum FrameBound {