Fix logical error

This commit is contained in:
Alexey Milovidov 2024-11-12 21:15:23 +01:00
parent 9285622a59
commit 18a26c1cd0

View File

@ -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>)