mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
fix
This commit is contained in:
parent
9d5998fd10
commit
0d319c8c61
@ -551,13 +551,13 @@ class FunctionBinaryArithmetic : public IFunction
|
|||||||
static bool castBothTypes(const IDataType * left, const IDataType * right, F && f)
|
static bool castBothTypes(const IDataType * left, const IDataType * right, F && f)
|
||||||
{
|
{
|
||||||
const bool l = castType(left, [](const auto& c){
|
const bool l = castType(left, [](const auto& c){
|
||||||
assert(std::is_same_v<decltype(c), Decimal32>);
|
assert((std::is_same_v<decltype(c), Decimal32>));
|
||||||
});
|
});
|
||||||
|
|
||||||
assert(l);
|
assert(l);
|
||||||
|
|
||||||
const bool r = castType(right, [](const auto& c){
|
const bool r = castType(right, [](const auto& c){
|
||||||
assert(std::is_same_v<decltype(c), Float32>);
|
assert((std::is_same_v<decltype(c), Float32>));
|
||||||
});
|
});
|
||||||
|
|
||||||
assert(r);
|
assert(r);
|
||||||
|
Loading…
Reference in New Issue
Block a user