More conversions

This commit is contained in:
Alexey Milovidov 2024-11-11 00:16:09 +01:00
parent 19ab7d484a
commit 1a2ee7929e

View File

@ -1862,11 +1862,6 @@ struct ConvertImpl
}
}
if constexpr ((std::is_same_v<FromDataType, DataTypeBFloat16> || std::is_same_v<ToDataType, DataTypeBFloat16>)
&& !(std::is_same_v<FromDataType, DataTypeFloat32> || std::is_same_v<ToDataType, DataTypeFloat32>))
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Conversion from {} to {} is not supported",
TypeName<typename FromDataType::FieldType>, TypeName<typename ToDataType::FieldType>);
if constexpr (std::is_same_v<Additions, AccurateOrNullConvertStrategyAdditions>
|| std::is_same_v<Additions, AccurateConvertStrategyAdditions>)
{