Fixed informational size in bytes of ColumnAggregateFunction [#METR-20359].

This commit is contained in:
Alexey Milovidov 2016-03-12 08:25:55 +03:00
parent 18016c4221
commit c8d21e3674

View File

@ -215,7 +215,12 @@ public:
size_t byteSize() const override size_t byteSize() const override
{ {
return getData().size() * sizeof(getData()[0]); size_t res = getData().size() * sizeof(getData()[0]);
for (const auto & arena : arenas)
res += arena.get()->size();
return res;
} }
void insertRangeFrom(const IColumn & src, size_t start, size_t length) override void insertRangeFrom(const IColumn & src, size_t start, size_t length) override