mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
fix
fix
This commit is contained in:
parent
4f94581116
commit
9a370a03ef
@ -15,7 +15,6 @@ namespace DB
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int ILLEGAL_TYPE_OF_ARGUMENT;
|
||||
extern const int TOO_LARGE_STRING_SIZE;
|
||||
}
|
||||
|
||||
// FunctionStringHash
|
||||
|
@ -97,8 +97,7 @@ public:
|
||||
{
|
||||
const auto * left_generic = block.getByPosition(arguments[0]).type.get();
|
||||
const auto * right_generic = block.getByPosition(arguments[1]).type.get();
|
||||
bool valid = castBothTypes(left_generic, right_generic, [&](const auto & left, const auto & right)
|
||||
{
|
||||
bool valid = castBothTypes(left_generic, right_generic, [&](const auto & left, const auto & right) {
|
||||
using LeftDataType = std::decay_t<decltype(left)>;
|
||||
using RightDataType = std::decay_t<decltype(right)>;
|
||||
using T0 = typename LeftDataType::FieldType;
|
||||
@ -109,8 +108,8 @@ public:
|
||||
|
||||
using OpImpl = BitHammingDistanceImpl<T0, T1>;
|
||||
|
||||
const auto col_left_raw = block.getByPosition(arguments[0]).column.get();
|
||||
const auto col_right_raw = block.getByPosition(arguments[1]).column.get();
|
||||
const auto * const col_left_raw = block.getByPosition(arguments[0]).column.get();
|
||||
const auto * const col_right_raw = block.getByPosition(arguments[1]).column.get();
|
||||
|
||||
typename ColVecResult::MutablePtr col_res = nullptr;
|
||||
col_res = ColVecResult::create();
|
||||
|
@ -106,8 +106,8 @@ public:
|
||||
const ColumnWithTypeAndName & arg2 = block.getByPosition(arguments[1]);
|
||||
const DataTypeTuple & type1 = static_cast<const DataTypeTuple &>(*arg1.type);
|
||||
const DataTypeTuple & type2 = static_cast<const DataTypeTuple &>(*arg2.type);
|
||||
auto & left_elems = type1.getElements();
|
||||
auto & right_elems = type2.getElements();
|
||||
const auto & left_elems = type1.getElements();
|
||||
const auto & right_elems = type2.getElements();
|
||||
if (left_elems.size() != 2 || right_elems.size() != 2)
|
||||
throw Exception(
|
||||
"Illegal column of arguments of function " + getName() + ", tuple should have exactly two elements.",
|
||||
|
Loading…
Reference in New Issue
Block a user