diff --git a/src/Functions/EntropyLearnedHash.cpp b/src/Functions/EntropyLearnedHash.cpp index 2d07198d583..c42f0f65192 100644 --- a/src/Functions/EntropyLearnedHash.cpp +++ b/src/Functions/EntropyLearnedHash.cpp @@ -45,14 +45,14 @@ Key getPartialKey(std::string_view key, const PartialKeyPositions & partial_key_ bool allPartialKeysAreUnique(const std::vector & data, const PartialKeyPositions & partial_key_positions) { - std::unordered_set partial_keys; - partial_keys.reserve(data.size()); + std::unordered_set unique_partial_keys; + unique_partial_keys.reserve(data.size()); Key partial_key; for (const auto & key : data) { getPartialKey(key, partial_key_positions, partial_key); - if (!partial_keys.insert(partial_key).second) + if (!unique_partial_keys.insert(partial_key).second) return false; }