mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Simplification of aggregate functions: development [#CLICKHOUSE-2].
This commit is contained in:
parent
ec3ec48309
commit
b198766dad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user