mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix logical error
This commit is contained in:
parent
9285622a59
commit
18a26c1cd0
@ -1691,6 +1691,13 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
if constexpr ((std::is_same_v<LeftDataType, DataTypeBFloat16> || std::is_same_v<RightDataType, DataTypeBFloat16>)
|
||||
&& (sizeof(typename LeftDataType::FieldType) > 8 || sizeof(typename RightDataType::FieldType) > 8))
|
||||
{
|
||||
/// Big integers and BFloat16 are not supported together.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
using ResultDataType = typename BinaryOperationTraits<Op, LeftDataType, RightDataType>::ResultDataType;
|
||||
|
||||
if constexpr (!std::is_same_v<ResultDataType, InvalidType>)
|
||||
|
Loading…
Reference in New Issue
Block a user