mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Cosmetics: Whitespaces
This commit is contained in:
parent
e2b11899a1
commit
b8f67185bf
@ -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>());
|
||||
|
||||
|
@ -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>());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user