Print type of the structure that will be used for HASHED/SPARSE_HASHED

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2023-05-15 20:28:28 +02:00
parent 2b240d3721
commit e1e2a83a9e

View File

@ -660,6 +660,11 @@ void HashedDictionary<dictionary_key_type, sparse, sharded>::createAttributes()
container.max_load_factor(configuration.max_load_factor);
attributes.emplace_back(std::move(attribute));
}
if constexpr (IsBuiltinHashTable<typename CollectionsHolder<ValueType>::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);