diff --git a/native/core/src/execution/datafusion/expressions/avg_decimal.rs b/native/core/src/execution/datafusion/expressions/avg_decimal.rs index 7eab6a0084..b035d32449 100644 --- a/native/core/src/execution/datafusion/expressions/avg_decimal.rs +++ b/native/core/src/execution/datafusion/expressions/avg_decimal.rs @@ -146,11 +146,7 @@ impl AggregateExpr for AvgDecimal { fn default_value(&self, _data_type: &DataType) -> Result { match &self.result_data_type { Decimal128(target_precision, target_scale) => { - Ok(make_decimal128( - None, - *target_precision, - *target_scale, - )) + Ok(make_decimal128(None, *target_precision, *target_scale)) } _ => not_impl_err!( "The result_data_type of AvgDecimal should be Decimal128 but got{}",