fix DefaultHash64 for IPv6

This commit is contained in:
Yakov Olkhovskiy 2022-11-26 17:21:06 +00:00
parent a61505f86e
commit 0854825151

View File

@ -178,7 +178,7 @@ inline size_t DefaultHash64(T key)
static_cast<UInt64>(key) ^
static_cast<UInt64>(key >> 64));
}
else if constexpr (std::is_same_v<T, DB::UUID>)
else if constexpr (std::is_same_v<T, DB::UUID> || std::is_same_v<T, DB::IPv6>)
{
return intHash64(
static_cast<UInt64>(key.toUnderType()) ^