mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
Trivial change
This commit is contained in:
parent
3bc731541c
commit
1d0caf1c90
@ -418,9 +418,10 @@ WeakHash32 ColumnAggregateFunction::getWeakHash32() const
|
|||||||
|
|
||||||
void ColumnAggregateFunction::updateHashFast(SipHash & hash) const
|
void ColumnAggregateFunction::updateHashFast(SipHash & hash) const
|
||||||
{
|
{
|
||||||
/// Fallback to per-element hashing, as there is no faster way
|
WriteBufferFromOwnString wbuf;
|
||||||
for (size_t i = 0; i < size(); ++i)
|
const ColumnAggregateFunction::Container & vec = getData();
|
||||||
updateHashWithValue(i, hash);
|
func->serializeBatch(vec, 0, size(), wbuf);
|
||||||
|
hash.update(wbuf.str().c_str(), wbuf.str().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The returned size is less than real size. The reason is that some parts of
|
/// The returned size is less than real size. The reason is that some parts of
|
||||||
|
Loading…
Reference in New Issue
Block a user