mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Fixed error with aggregate function anyHeavy [#METR-21691].
This commit is contained in:
parent
55ed2904f4
commit
e66ba2e1d8
@ -582,6 +582,7 @@ struct AggregateFunctionAnyHeavyData : Data
|
|||||||
if (counter == 0)
|
if (counter == 0)
|
||||||
{
|
{
|
||||||
this->change(column, row_num);
|
this->change(column, row_num);
|
||||||
|
++counter;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -609,6 +610,18 @@ struct AggregateFunctionAnyHeavyData : Data
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void write(WriteBuffer & buf, const IDataType & data_type) const
|
||||||
|
{
|
||||||
|
Data::write(buf, data_type);
|
||||||
|
writeBinary(counter, buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
void read(ReadBuffer & buf, const IDataType & data_type)
|
||||||
|
{
|
||||||
|
Data::read(buf, data_type);
|
||||||
|
readBinary(counter, buf);
|
||||||
|
}
|
||||||
|
|
||||||
static const char * name() { return "anyHeavy"; }
|
static const char * name() { return "anyHeavy"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user