mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
insert UInt32 Hashvalue in reverse order on big endian machine
This commit is contained in:
parent
5f01b8a2b5
commit
e95044f713
@ -331,7 +331,11 @@ public:
|
||||
|
||||
void ALWAYS_INLINE insert(Value x)
|
||||
{
|
||||
HashValue hash_value = hash(x);
|
||||
HashValue hash_value;
|
||||
if constexpr (std::endian::native == std::endian::little)
|
||||
hash_value = hash(x);
|
||||
else
|
||||
hash_value = __builtin_bswap32(hash(x));
|
||||
if (!good(hash_value))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user