Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Nov 11, 2024
1 parent 7e65cb2 commit cbd44a1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/expr/impl/src/aggregate/first_last_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ fn first_value(state: &mut FirstValueState, input: Option<ScalarRefImpl<'_>>) {
}
}

#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone, Default, EstimateSize)]
struct FirstValueState(Option<Datum>);

impl EstimateSize for FirstValueState {
fn estimated_heap_size(&self) -> usize {
self.0.estimated_heap_size()
}
}

impl AggStateDyn for FirstValueState {}

impl From<&FirstValueState> for Datum {
Expand Down

0 comments on commit cbd44a1

Please sign in to comment.