From cbd44a11b15c33b2a31fd8df7729db1c598bfea2 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Mon, 11 Nov 2024 17:50:20 +0800 Subject: [PATCH] simplify Signed-off-by: Richard Chien --- src/expr/impl/src/aggregate/first_last_value.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/expr/impl/src/aggregate/first_last_value.rs b/src/expr/impl/src/aggregate/first_last_value.rs index e4577361c6089..841442148f722 100644 --- a/src/expr/impl/src/aggregate/first_last_value.rs +++ b/src/expr/impl/src/aggregate/first_last_value.rs @@ -41,15 +41,9 @@ fn first_value(state: &mut FirstValueState, input: Option>) { } } -#[derive(Debug, Clone, Default)] +#[derive(Debug, Clone, Default, EstimateSize)] struct FirstValueState(Option); -impl EstimateSize for FirstValueState { - fn estimated_heap_size(&self) -> usize { - self.0.estimated_heap_size() - } -} - impl AggStateDyn for FirstValueState {} impl From<&FirstValueState> for Datum {