mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
fix another bug in AggregateFunctionMinMaxAny
This commit is contained in:
parent
f4bc44f729
commit
e9fa1accf1
@ -1163,6 +1163,9 @@ struct AggregateFunctionAnyHeavyData : Data
|
||||
|
||||
bool changeIfBetter(const Self & to, Arena * arena)
|
||||
{
|
||||
if (!to.has())
|
||||
return false;
|
||||
|
||||
if (this->isEqualTo(to))
|
||||
{
|
||||
counter += to.counter;
|
||||
|
@ -3,3 +3,4 @@
|
||||
\N
|
||||
0 \N \N \N
|
||||
0 \N \N \N
|
||||
1
|
||||
|
@ -31,3 +31,5 @@ FROM numbers(0)
|
||||
)
|
||||
GROUP BY NULL
|
||||
WITH CUBE;
|
||||
|
||||
SELECT anyHeavy('1') FROM (SELECT anyHeavy(1));
|
||||
|
Loading…
Reference in New Issue
Block a user