mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
dbms: fixed error [#MTRSADMIN-1690].
This commit is contained in:
parent
1331e1fb42
commit
e7aabfe43c
@ -1356,11 +1356,15 @@ void NO_INLINE Aggregator::mergeSingleLevelDataImpl(
|
||||
mergeDataImpl<Method>(
|
||||
getDataVariant<Method>(*res).data,
|
||||
getDataVariant<Method>(current).data);
|
||||
else
|
||||
else if (res->without_key)
|
||||
mergeDataNoMoreKeysImpl<Method>(
|
||||
getDataVariant<Method>(*res).data,
|
||||
res->without_key,
|
||||
getDataVariant<Method>(current).data);
|
||||
else
|
||||
mergeDataOnlyExistingKeysImpl<Method>(
|
||||
getDataVariant<Method>(*res).data,
|
||||
getDataVariant<Method>(current).data);
|
||||
|
||||
/// current не будет уничтожать состояния агрегатных функций в деструкторе
|
||||
current.aggregator = nullptr;
|
||||
|
@ -0,0 +1 @@
|
||||
0 0
|
@ -0,0 +1,12 @@
|
||||
DROP TABLE IF EXISTS test.numbers_10k_log;
|
||||
|
||||
SET max_block_size = 1000;
|
||||
|
||||
CREATE TABLE test.numbers_10k_log ENGINE = Log AS SELECT number FROM system.numbers LIMIT 10000;
|
||||
|
||||
SET max_threads = 4;
|
||||
SET max_rows_to_group_by = 3000, group_by_overflow_mode = 'any';
|
||||
|
||||
SELECT ignore(rand() AS k), ignore(max(toString(number))) FROM test.numbers_10k_log GROUP BY k LIMIT 1;
|
||||
|
||||
DROP TABLE test.numbers_10k_log;
|
Loading…
Reference in New Issue
Block a user