mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Do not compile BFloat16
This commit is contained in:
parent
6dee7e4276
commit
89b015cecf
@ -411,7 +411,8 @@ struct WhichDataType
|
||||
constexpr bool isBFloat16() const { return idx == TypeIndex::BFloat16; }
|
||||
constexpr bool isFloat32() const { return idx == TypeIndex::Float32; }
|
||||
constexpr bool isFloat64() const { return idx == TypeIndex::Float64; }
|
||||
constexpr bool isFloat() const { return isBFloat16() || isFloat32() || isFloat64(); }
|
||||
constexpr bool isNativeFloat() const { return isFloat32() || isFloat64(); }
|
||||
constexpr bool isFloat() const { return isNativeFloat() || isBFloat16(); }
|
||||
|
||||
constexpr bool isNativeNumber() const { return isNativeInteger() || isFloat(); }
|
||||
constexpr bool isNumber() const { return isInteger() || isFloat() || isDecimal(); }
|
||||
|
@ -37,7 +37,7 @@ bool canBeNativeType(const IDataType & type)
|
||||
return canBeNativeType(*data_type_nullable.getNestedType());
|
||||
}
|
||||
|
||||
return data_type.isNativeInt() || data_type.isNativeUInt() || data_type.isFloat() || data_type.isDate()
|
||||
return data_type.isNativeInt() || data_type.isNativeUInt() || data_type.isNativeFloat() || data_type.isDate()
|
||||
|| data_type.isDate32() || data_type.isDateTime() || data_type.isEnum();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user