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 24, 2024
1 parent c180ec6 commit bd2ed75
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 All @@ -174,6 +170,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 bd2ed75

Please sign in to comment.