mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
fix build with embedded compiler
This commit is contained in:
parent
6096c6998d
commit
a0309b57ab
@ -442,7 +442,7 @@ inline bool isNotDecimalButComparableToDecimal(const IDataType * data_type)
|
||||
return data_type->isInteger();
|
||||
}
|
||||
|
||||
inline bool isCompilable(const IDataType * data_type)
|
||||
inline bool isCompilableType(const IDataType * data_type)
|
||||
{
|
||||
return data_type->isValueRepresentedByNumber() && !isDecimal(data_type);
|
||||
}
|
||||
|
@ -1237,7 +1237,7 @@ public:
|
||||
auto isFloatingPoint = &typeIsEither<DataTypeFloat32, DataTypeFloat64>;
|
||||
if ((isBigInteger(*types[0]) && isFloatingPoint(*types[1])) || (isBigInteger(*types[1]) && isFloatingPoint(*types[0])))
|
||||
return false; /// TODO: implement (double, int_N where N > double's mantissa width)
|
||||
return isCompilable(types[0]) && isCompilable(types[1]);
|
||||
return isCompilableType(types[0].get()) && isCompilableType(types[1].get());
|
||||
}
|
||||
|
||||
llvm::Value * compileImpl(llvm::IRBuilderBase & builder, const DataTypes & types, ValuePlaceholders values) const override
|
||||
|
@ -122,7 +122,7 @@ public:
|
||||
bool isCompilableImpl(const DataTypes & types) const override
|
||||
{
|
||||
for (const auto & type : types)
|
||||
if (!isCompilable(removeNullable(type)))
|
||||
if (!isCompilableType(removeNullable(type).get()))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user