Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Jan 29, 2024
1 parent 2c3e5e7 commit 21e2a86
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/expr/core/src/window_function/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ pub struct RowsFrameBounds {
pub end: FrameBound<usize>,
}

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:
Expand Down Expand Up @@ -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<T> {
Expand Down

0 comments on commit 21e2a86

Please sign in to comment.