fix build

This commit is contained in:
Han Fei 2022-12-22 23:27:10 +01:00
parent efa963fb0e
commit 2bb952a796
2 changed files with 5 additions and 13 deletions

View File

@ -48,12 +48,6 @@ namespace ErrorCodes
extern const int INCORRECT_DICTIONARY_DEFINITION; extern const int INCORRECT_DICTIONARY_DEFINITION;
} }
//const std::string_view kId;
//const std::string_view kParentId;
//const std::string_view kRegExp;
//const std::string_view kKeys;
//const std::string_view kValues;
const std::string kRegExp = "regexp"; const std::string kRegExp = "regexp";
const std::string kId = "id"; const std::string kId = "id";
const std::string kParentId = "parent_id"; const std::string kParentId = "parent_id";
@ -359,10 +353,10 @@ namespace
} }
std::unordered_map<String, ColumnPtr> RegExpTreeDictionary::matchSearchAllIndices( std::unordered_map<String, ColumnPtr> RegExpTreeDictionary::matchSearchAllIndices(
const ColumnString::Chars & keys_data, [[maybe_unused]] const ColumnString::Chars & keys_data,
const ColumnString::Offsets & key_offsets, [[maybe_unused]] const ColumnString::Offsets & key_offsets,
const std::unordered_map<String, const DictionaryAttribute &> & attributes, [[maybe_unused]] const std::unordered_map<String, const DictionaryAttribute &> & attributes,
const std::unordered_map<String, ColumnPtr> & defaults) const [[maybe_unused]] const std::unordered_map<String, ColumnPtr> & defaults) const
{ {
#if USE_VECTORSCAN #if USE_VECTORSCAN
std::vector<std::string_view> regexps_views(regexps.begin(), regexps.end()); std::vector<std::string_view> regexps_views(regexps.begin(), regexps.end());
@ -473,8 +467,6 @@ std::unordered_map<String, ColumnPtr> RegExpTreeDictionary::matchSearchAllIndice
return result; return result;
#else #else
(void)keys_data;
(void)keys_offsets;
throw Exception(ErrorCodes::UNSUPPORTED_METHOD, "Multi search all indices is not implemented when USE_VECTORSCAN is off"); throw Exception(ErrorCodes::UNSUPPORTED_METHOD, "Multi search all indices is not implemented when USE_VECTORSCAN is off");
#endif // USE_VECTORSCAN #endif // USE_VECTORSCAN
} }

View File

@ -61,7 +61,7 @@ namespace ErrorCodes
void registerDictionarySourceYAMLRegExpTree(DictionarySourceFactory & factory) void registerDictionarySourceYAMLRegExpTree(DictionarySourceFactory & factory)
{ {
auto create_table_source = [=](const DictionaryStructure & dict_struct, auto create_table_source = [=]([[maybe_unused]] const DictionaryStructure & dict_struct,
[[maybe_unused]] const Poco::Util::AbstractConfiguration & config, [[maybe_unused]] const Poco::Util::AbstractConfiguration & config,
[[maybe_unused]] const String & config_prefix, [[maybe_unused]] const String & config_prefix,
Block & , Block & ,