mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
dbms: development [#CONV-2944].
This commit is contained in:
parent
191c78ede0
commit
cd94f5cccb
@ -35,7 +35,7 @@ struct UInt128
|
||||
|
||||
struct UInt128Hash
|
||||
{
|
||||
size_t operator()(UInt128 x) const { return x.first; }
|
||||
size_t operator()(UInt128 x) const { return x.first ^ x.second; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -275,7 +275,7 @@ void Aggregator::execute(BlockInputStreamPtr stream, AggregatedDataVariants & re
|
||||
key[j] = (*key_columns[j])[i];
|
||||
UInt64 tmp = boost::apply_visitor(to_uint64_visitor, key[j]);
|
||||
/// Работает только на little endian
|
||||
memcpy(key_hash_union.bytes, reinterpret_cast<const char *>(&tmp), key_sizes[j]);
|
||||
memcpy(key_hash_union.bytes + offset, reinterpret_cast<const char *>(&tmp), key_sizes[j]);
|
||||
offset += key_sizes[j];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user