From b8f67185bf43e25005f697cdd0402479155bbeb3 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Sat, 25 Jun 2022 18:05:49 +0200 Subject: [PATCH] Cosmetics: Whitespaces --- src/Functions/FunctionsMultiStringFuzzySearch.h | 4 ---- src/Functions/FunctionsMultiStringSearch.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/Functions/FunctionsMultiStringFuzzySearch.h b/src/Functions/FunctionsMultiStringFuzzySearch.h index 33721dd19ef..b42352d990e 100644 --- a/src/Functions/FunctionsMultiStringFuzzySearch.h +++ b/src/Functions/FunctionsMultiStringFuzzySearch.h @@ -74,7 +74,6 @@ public: assert(col_haystack_vector); // getReturnTypeImpl() checks the data type UInt32 edit_distance = 0; - if (const auto * col_const_uint8 = checkAndGetColumnConst(num_ptr.get())) edit_distance = col_const_uint8->getValue(); else if (const auto * col_const_uint16 = checkAndGetColumnConst(num_ptr.get())) @@ -85,15 +84,12 @@ public: throw Exception(ErrorCodes::ILLEGAL_COLUMN, "Illegal column {}. The number is not const or does not fit in UInt32", arguments[1].column->getName()); const ColumnConst * col_const_arr = checkAndGetColumnConst(arr_ptr.get()); - if (!col_const_arr) throw Exception(ErrorCodes::ILLEGAL_COLUMN, "Illegal column {}. The array is not const", arguments[2].column->getName()); Array src_arr = col_const_arr->getValue(); - std::vector refs; refs.reserve(src_arr.size()); - for (const auto & el : src_arr) refs.emplace_back(el.get()); diff --git a/src/Functions/FunctionsMultiStringSearch.h b/src/Functions/FunctionsMultiStringSearch.h index b4ff354af41..1fe2e036a9a 100644 --- a/src/Functions/FunctionsMultiStringSearch.h +++ b/src/Functions/FunctionsMultiStringSearch.h @@ -85,15 +85,12 @@ public: assert(col_haystack_vector); // getReturnTypeImpl() checks the data type const ColumnConst * col_const_arr = checkAndGetColumnConst(arr_ptr.get()); - if (!col_const_arr) throw Exception(ErrorCodes::ILLEGAL_COLUMN, "Illegal column {}. The array is not const", arguments[1].column->getName()); Array src_arr = col_const_arr->getValue(); - std::vector refs; refs.reserve(src_arr.size()); - for (const auto & el : src_arr) refs.emplace_back(el.get());