Cosmetics: Whitespaces

This commit is contained in:
Robert Schulze 2022-06-25 18:05:49 +02:00
parent e2b11899a1
commit b8f67185bf
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 0 additions and 7 deletions

View File

@ -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<ColumnUInt8>(num_ptr.get()))
edit_distance = col_const_uint8->getValue<UInt8>();
else if (const auto * col_const_uint16 = checkAndGetColumnConst<ColumnUInt16>(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<ColumnArray>(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<Array>();
std::vector<std::string_view> refs;
refs.reserve(src_arr.size());
for (const auto & el : src_arr)
refs.emplace_back(el.get<String>());

View File

@ -85,15 +85,12 @@ public:
assert(col_haystack_vector); // getReturnTypeImpl() checks the data type
const ColumnConst * col_const_arr = checkAndGetColumnConst<ColumnArray>(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<Array>();
std::vector<std::string_view> refs;
refs.reserve(src_arr.size());
for (const auto & el : src_arr)
refs.emplace_back(el.get<String>());