mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
fix convertFieldToTypeImpl for Decimal64 -> DateTime
This commit is contained in:
parent
52dc9a54a7
commit
4d2fbf83b9
@ -243,9 +243,9 @@ Field convertFieldToTypeImpl(const Field & src, const IDataType & type, const ID
|
||||
return dynamic_cast<const IDataTypeEnum &>(type).castToValue(src);
|
||||
}
|
||||
|
||||
if ((which_type.isDate() || which_type.isDateTime()) && src.getType() == Field::Types::UInt64)
|
||||
if ((which_type.isDate() || which_type.isDateTime()) && (src.getType() == Field::Types::UInt64 || src.getType() == Field::Types::Decimal64))
|
||||
{
|
||||
/// We don't need any conversion UInt64 is under type of Date and DateTime
|
||||
/// We don't need any conversion as both Decimal64 and UInt64 are under types of Date and DateTime
|
||||
return src;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user