diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSum.h b/dbms/src/AggregateFunctions/AggregateFunctionSum.h index ffd50bd3ebe..e2866edd094 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionSum.h +++ b/dbms/src/AggregateFunctions/AggregateFunctionSum.h @@ -278,10 +278,10 @@ struct AggregateFunctionSumKahanData }; -#define DEFAULT_DECIMAL_INFER \ - static std::pair decimalInfer(PrecType prec, ScaleType scale) \ - { \ - return SumDecimalInferer::infer(prec, scale); \ +#define DEFAULT_DECIMAL_INFER \ + static std::tuple decimalInfer(PrecType prec, ScaleType scale) \ + { \ + return SumDecimalInferer::infer(prec, scale); \ } @@ -294,7 +294,7 @@ struct NameSum struct NameSumWithOverFlow { static constexpr auto name = "sumWithOverflow"; - static std::pair decimalInfer(PrecType prec, ScaleType scale) + static std::tuple decimalInfer(PrecType prec, ScaleType scale) { return {prec, scale}; } @@ -327,8 +327,8 @@ class AggregateFunctionSum final : public IAggregateFunctionDataHelper #include +#include #include namespace DB