diff --git a/src/AggregateFunctions/AggregateFunctionAvg.h b/src/AggregateFunctions/AggregateFunctionAvg.h index f169050dc2f..4a46e7b6a56 100644 --- a/src/AggregateFunctions/AggregateFunctionAvg.h +++ b/src/AggregateFunctions/AggregateFunctionAvg.h @@ -47,14 +47,14 @@ struct AvgFraction } /// Numerator is always casted to Float64 to divide correctly if the denominator is not Float64. - const Float64 num_converted; + Float64 num_converted; if constexpr (IsDecimalNumber) num_converted = DecimalUtils::convertTo(numerator, scale); else num_converted = static_cast(numerator); /// all other types, including extended integral. - const std::conditional_t, + std::conditional_t, Float64, Denominator>> denom_converted; if constexpr (IsDecimalNumber)