mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
make happy gcc-9
This commit is contained in:
parent
4ea8cfb1e1
commit
d5b6b580c3
@ -811,8 +811,7 @@ public:
|
|||||||
return type_res;
|
return type_res;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename A, typename B>
|
bool executeFixedString(Block & block, const ColumnNumbers & arguments, size_t result)
|
||||||
bool executeFixedString(Block & block, const ColumnNumbers & arguments, size_t result, const A & /*left*/, const B & /*right*/)
|
|
||||||
{
|
{
|
||||||
using OpImpl = FixedStringOperationImpl<Op<UInt8, UInt8>>;
|
using OpImpl = FixedStringOperationImpl<Op<UInt8, UInt8>>;
|
||||||
|
|
||||||
@ -1008,6 +1007,8 @@ public:
|
|||||||
block.getByPosition(result).column = std::move(col_res);
|
block.getByPosition(result).column = std::move(col_res);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
(void)result;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1041,13 +1042,9 @@ void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result,
|
|||||||
using LeftDataType = std::decay_t<decltype(left)>;
|
using LeftDataType = std::decay_t<decltype(left)>;
|
||||||
using RightDataType = std::decay_t<decltype(right)>;
|
using RightDataType = std::decay_t<decltype(right)>;
|
||||||
if constexpr (std::is_same_v<DataTypeFixedString, LeftDataType> || std::is_same_v<DataTypeFixedString, RightDataType>)
|
if constexpr (std::is_same_v<DataTypeFixedString, LeftDataType> || std::is_same_v<DataTypeFixedString, RightDataType>)
|
||||||
{
|
return executeFixedString(block, arguments, result);
|
||||||
return executeFixedString(block, arguments, result, left, right);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
return executeNumeric(block, arguments, result, left, right);
|
return executeNumeric(block, arguments, result, left, right);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
if (!valid)
|
if (!valid)
|
||||||
throw Exception(getName() + "'s arguments do not match the expected data types", ErrorCodes::LOGICAL_ERROR);
|
throw Exception(getName() + "'s arguments do not match the expected data types", ErrorCodes::LOGICAL_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user