mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
commit
7271c9c983
@ -108,13 +108,13 @@ struct AggregateFunctionTimeSeriesGroupSumData
|
||||
else
|
||||
result.emplace_back(std::make_pair(t, v));
|
||||
}
|
||||
size_t i = result.size() - 1;
|
||||
ssize_t i = result.size() - 1;
|
||||
//reverse find out the index of timestamp that more than previous timestamp of t
|
||||
while (result[i].first > it_ss->second.dps.front().first && i >= 0)
|
||||
i--;
|
||||
|
||||
i++;
|
||||
while (i < result.size() - 1)
|
||||
while (i < ssize_t(result.size()) - 1)
|
||||
{
|
||||
result[i].second += it_ss->second.getval(result[i].first);
|
||||
i++;
|
||||
|
@ -89,8 +89,8 @@ struct UInt128
|
||||
UInt128 & operator= (const UInt64 rhs) { low = rhs; high = 0; return *this; }
|
||||
};
|
||||
|
||||
template <typename T> bool inline operator == (T a, const UInt128 b) { return b == a; }
|
||||
template <typename T> bool inline operator != (T a, const UInt128 b) { return b != a; }
|
||||
template <typename T> bool inline operator == (T a, const UInt128 b) { return b.operator==(a); }
|
||||
template <typename T> bool inline operator != (T a, const UInt128 b) { return b.operator!=(a); }
|
||||
template <typename T> bool inline operator >= (T a, const UInt128 b) { return b <= a; }
|
||||
template <typename T> bool inline operator > (T a, const UInt128 b) { return b < a; }
|
||||
template <typename T> bool inline operator <= (T a, const UInt128 b) { return b >= a; }
|
||||
|
Loading…
Reference in New Issue
Block a user