Simplification of aggregate functions: development [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-12-21 05:07:26 +03:00 committed by alexey-milovidov
parent ec3ec48309
commit b198766dad

View File

@ -187,16 +187,16 @@ public:
set.resize(reserved);
if constexpr (is_plain_column)
{
set.insert(columns[0]->getDataAt(row_num));
}
else
{
const char * begin = nullptr;
StringRef str_serialized = columns[0]->serializeValueIntoArena(row_num, *arena, begin);
set.insert(str_serialized);
arena->rollback(str_serialized.size);
}
else
{
set.insert(columns[0]->getDataAt(row_num));
}
}
void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena *) const override