mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 10:40:49 +00:00
Update weak hash.
This commit is contained in:
parent
20d3e34fb0
commit
07b29453cc
@ -232,6 +232,8 @@ void ColumnArray::updateWeakHash32(WeakHash32 & hash) const
|
||||
|
||||
for (size_t i = 0; i < s; ++i)
|
||||
{
|
||||
hash_data[i] = intHashCRC32(hash_data[i]);
|
||||
|
||||
for (size_t row = prev_offset; row < offsets_data[i]; ++row)
|
||||
/// It is probably not the best way to combine hashes.
|
||||
/// But much better then xor which lead to similar hash for arrays like [1], [1, 1, 1], [1, 1, 1, 1, 1], ...
|
||||
|
Loading…
Reference in New Issue
Block a user