mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
done
This commit is contained in:
parent
11fc6fd8c9
commit
d95bcc8890
@ -768,8 +768,7 @@ T & Field::get()
|
|||||||
// Disregard signedness when converting between int64 types.
|
// Disregard signedness when converting between int64 types.
|
||||||
constexpr Field::Types::Which target = TypeToEnum<NearestFieldType<ValueType>>::value;
|
constexpr Field::Types::Which target = TypeToEnum<NearestFieldType<ValueType>>::value;
|
||||||
if (target != which
|
if (target != which
|
||||||
&& (!isInt64FieldType(target) || !isInt64FieldType(which))
|
&& (!isInt64FieldType(target) || !isInt64FieldType(which)))
|
||||||
&& target != Field::Types::Decimal64 /* DateTime64 fields */)
|
|
||||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Invalid Field get from type {} to type {}", Types::toString(which), Types::toString(target));
|
throw Exception(ErrorCodes::LOGICAL_ERROR, "Invalid Field get from type {} to type {}", Types::toString(which), Types::toString(target));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user