diff --git a/dbms/include/DB/AggregateFunctions/AggregateFunctionUniqUpTo.h b/dbms/include/DB/AggregateFunctions/AggregateFunctionUniqUpTo.h index 52605ce7dcc..d182eec0a9b 100644 --- a/dbms/include/DB/AggregateFunctions/AggregateFunctionUniqUpTo.h +++ b/dbms/include/DB/AggregateFunctions/AggregateFunctionUniqUpTo.h @@ -202,6 +202,11 @@ private: UInt8 threshold = 5; /// Значение по-умолчанию, если параметр не указан. public: + size_t sizeOfData() const + { + return sizeof(AggregateFunctionUniqUpToData) + sizeof(UInt64) * threshold; + } + String getName() const { return "uniqUpTo"; } DataTypePtr getReturnType() const