Skip to content

Commit

Permalink
Fix build break (#5707)
Browse files Browse the repository at this point in the history
close #5706
  • Loading branch information
fuzhe1989 authored Aug 26, 2022
1 parent d88c3d1 commit aecc1df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dbms/src/AggregateFunctions/AggregateFunctionSum.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ struct AggregateFunctionSumKahanData
};


#define DEFAULT_DECIMAL_INFER \
static std::pair<PrecType, ScaleType> decimalInfer(PrecType prec, ScaleType scale) \
{ \
return SumDecimalInferer::infer(prec, scale); \
#define DEFAULT_DECIMAL_INFER \
static std::tuple<PrecType, ScaleType> decimalInfer(PrecType prec, ScaleType scale) \
{ \
return SumDecimalInferer::infer(prec, scale); \
}


Expand All @@ -294,7 +294,7 @@ struct NameSum
struct NameSumWithOverFlow
{
static constexpr auto name = "sumWithOverflow";
static std::pair<PrecType, ScaleType> decimalInfer(PrecType prec, ScaleType scale)
static std::tuple<PrecType, ScaleType> decimalInfer(PrecType prec, ScaleType scale)
{
return {prec, scale};
}
Expand Down Expand Up @@ -327,8 +327,8 @@ class AggregateFunctionSum final : public IAggregateFunctionDataHelper<Data, Agg

String getName() const override { return Name::name; }

ScaleType result_scale;
PrecType result_prec;
ScaleType result_scale{};
PrecType result_prec{};

AggregateFunctionSum() = default;

Expand All @@ -349,7 +349,7 @@ class AggregateFunctionSum final : public IAggregateFunctionDataHelper<Data, Agg
}
}

void create(AggregateDataPtr __restrict place) const override
void create(AggregateDataPtr __restrict place) const override // NOLINT(readability-non-const-parameter)
{
new (place) Data;
}
Expand Down
1 change: 1 addition & 0 deletions dbms/src/Common/SyncPoint/SyncChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <Common/SyncPoint/Ctl.h>
#include <Common/nocopyable.h>

#include <condition_variable>
#include <mutex>

namespace DB
Expand Down

0 comments on commit aecc1df

Please sign in to comment.