mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Update FunctionBinaryArithmetic.h
This commit is contained in:
parent
0b10612c86
commit
57482de0f0
@ -171,7 +171,7 @@ public:
|
|||||||
using ResultDataType = Switch<
|
using ResultDataType = Switch<
|
||||||
/// Result must be Integer
|
/// Result must be Integer
|
||||||
Case<IsOperation<Operation>::int_div || IsOperation<Operation>::int_div_or_zero,
|
Case<IsOperation<Operation>::int_div || IsOperation<Operation>::int_div_or_zero,
|
||||||
std::conditional_t<IsDataTypeNumber<LeftDataType> && IsDataTypeNumber<RightDataType>, DataTypeFromFieldType<typename Op::ResultType>, InvalidType>>,
|
std::conditional_t<IsDataTypeDecimalOrNumber<LeftDataType> && IsDataTypeDecimalOrNumber<RightDataType>, DataTypeFromFieldType<typename Op::ResultType>, InvalidType>>,
|
||||||
/// Decimal cases
|
/// Decimal cases
|
||||||
Case<IsDataTypeDecimal<LeftDataType> || IsDataTypeDecimal<RightDataType>, DecimalResultDataType>,
|
Case<IsDataTypeDecimal<LeftDataType> || IsDataTypeDecimal<RightDataType>, DecimalResultDataType>,
|
||||||
Case<
|
Case<
|
||||||
|
Loading…
Reference in New Issue
Block a user