From e1e2a83a9e78b5e56476f38478895b8826e2b3dd Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 15 May 2023 20:28:28 +0200 Subject: [PATCH] Print type of the structure that will be used for HASHED/SPARSE_HASHED Signed-off-by: Azat Khuzhin --- src/Dictionaries/HashedDictionary.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Dictionaries/HashedDictionary.cpp b/src/Dictionaries/HashedDictionary.cpp index 1ddcfae99b4..83d051df5e9 100644 --- a/src/Dictionaries/HashedDictionary.cpp +++ b/src/Dictionaries/HashedDictionary.cpp @@ -660,6 +660,11 @@ void HashedDictionary::createAttributes() container.max_load_factor(configuration.max_load_factor); attributes.emplace_back(std::move(attribute)); } + + if constexpr (IsBuiltinHashTable::value_type>) + LOG_TRACE(log, "Using builtin hash table for {} attribute", dictionary_attribute.name); + else + LOG_TRACE(log, "Using sparsehash for {} attribute", dictionary_attribute.name); }; callOnDictionaryAttributeType(dictionary_attribute.underlying_type, type_call);