mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fixed error in aggregate function "anyHeavy"; added a test [#CLICKHOUSE-3867]
This commit is contained in:
parent
448bcdfdb4
commit
a2101df25a
@ -646,7 +646,7 @@ struct AggregateFunctionAnyHeavyData : Data
|
||||
}
|
||||
else
|
||||
{
|
||||
if (counter < to.counter)
|
||||
if ((!this->has() && to.has()) || counter < to.counter)
|
||||
{
|
||||
this->change(to, arena);
|
||||
return true;
|
||||
|
@ -0,0 +1 @@
|
||||
4 ['hello','world'] hello
|
@ -0,0 +1 @@
|
||||
WITH arrayJoin(['hello', 'world']) AS s SELECT count(), arraySort(groupUniqArray(s)), anyHeavy(s) FROM remote('127.0.0.{2,3}', system.one);
|
Loading…
Reference in New Issue
Block a user