From c98a165980cb57edf86e4b7152b66e6c97b6f991 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Mon, 18 Mar 2024 08:32:16 +0000 Subject: [PATCH] Fix build --- src/Dictionaries/RangeHashedDictionary.h | 14 +++++++------- .../RangeHashedDictionaryGetItemsImpl.txx | 2 +- ...ngeHashedDictionaryGetItemsShortCircuitImpl.txx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Dictionaries/RangeHashedDictionary.h b/src/Dictionaries/RangeHashedDictionary.h index 0469e82d7be..c208863905b 100644 --- a/src/Dictionaries/RangeHashedDictionary.h +++ b/src/Dictionaries/RangeHashedDictionary.h @@ -288,7 +288,7 @@ private: extern template class RangeHashedDictionary; extern template class RangeHashedDictionary; -namespace +namespace impl { template void callOnRangeType(const DataTypePtr & range_type, F && func) @@ -465,7 +465,7 @@ ColumnUInt8::Ptr RangeHashedDictionary::hasKeys(const Colum auto & out = result->getData(); size_t keys_found = 0; - callOnRangeType(dict_struct.range_min->type, [&](const auto & types) + impl::callOnRangeType(dict_struct.range_min->type, [&](const auto & types) { using Types = std::decay_t; using RangeColumnType = typename Types::LeftType; @@ -523,7 +523,7 @@ void RangeHashedDictionary::createAttributes() getDictionaryID().getNameForLogs()); } - callOnRangeType(dict_struct.range_min->type, [&](const auto & types) + impl::callOnRangeType(dict_struct.range_min->type, [&](const auto & types) { using Types = std::decay_t; using RangeColumnType = typename Types::LeftType; @@ -553,7 +553,7 @@ void RangeHashedDictionary::loadData() updateData(); } - callOnRangeType(dict_struct.range_min->type, [&](const auto & types) + impl::callOnRangeType(dict_struct.range_min->type, [&](const auto & types) { using Types = std::decay_t; using RangeColumnType = typename Types::LeftType; @@ -573,7 +573,7 @@ void RangeHashedDictionary::loadData() template void RangeHashedDictionary::calculateBytesAllocated() { - callOnRangeType(dict_struct.range_min->type, [&](const auto & types) + impl::callOnRangeType(dict_struct.range_min->type, [&](const auto & types) { using Types = std::decay_t; using RangeColumnType = typename Types::LeftType; @@ -783,7 +783,7 @@ void RangeHashedDictionary::blockToAttributes(const Block & max_range_null_map = &max_range_column_nullable->getNullMapColumn().getData(); } - callOnRangeType(dict_struct.range_min->type, [&](const auto & types) + impl::callOnRangeType(dict_struct.range_min->type, [&](const auto & types) { using Types = std::decay_t; using RangeColumnType = typename Types::LeftType; @@ -930,7 +930,7 @@ Pipe RangeHashedDictionary::read(const Names & column_names PaddedPODArray keys; - callOnRangeType(dict_struct.range_min->type, [&](const auto & types) + impl::callOnRangeType(dict_struct.range_min->type, [&](const auto & types) { using Types = std::decay_t; using RangeColumnType = typename Types::LeftType; diff --git a/src/Dictionaries/RangeHashedDictionaryGetItemsImpl.txx b/src/Dictionaries/RangeHashedDictionaryGetItemsImpl.txx index 9da2b0faf4a..8ed4445f236 100644 --- a/src/Dictionaries/RangeHashedDictionaryGetItemsImpl.txx +++ b/src/Dictionaries/RangeHashedDictionaryGetItemsImpl.txx @@ -37,7 +37,7 @@ void RangeHashedDictionary::getItemsImpl( DictionaryKeysExtractor keys_extractor(key_columns_copy, arena_holder.getComplexKeyArena()); const size_t keys_size = keys_extractor.getKeysSize(); - callOnRangeType( + impl::callOnRangeType( dict_struct.range_min->type, [&](const auto & types) { diff --git a/src/Dictionaries/RangeHashedDictionaryGetItemsShortCircuitImpl.txx b/src/Dictionaries/RangeHashedDictionaryGetItemsShortCircuitImpl.txx index 5807af519f9..63c29f8cc34 100644 --- a/src/Dictionaries/RangeHashedDictionaryGetItemsShortCircuitImpl.txx +++ b/src/Dictionaries/RangeHashedDictionaryGetItemsShortCircuitImpl.txx @@ -37,7 +37,7 @@ size_t RangeHashedDictionary::getItemsShortCircuitImpl( const size_t keys_size = keys_extractor.getKeysSize(); default_mask.resize(keys_size); - callOnRangeType( + impl::callOnRangeType( dict_struct.range_min->type, [&](const auto & types) {