From d2dc5e9fc835d0dd95420d6bc50848b1d6a97ce5 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Mon, 8 May 2023 12:36:28 +0000 Subject: [PATCH] Improve naming --- src/Functions/EntropyLearnedHash.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }