mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Branch refactoring.
This commit is contained in:
parent
6fa925c263
commit
2252ee5a90
@ -187,6 +187,12 @@ Field convertFieldToTypeImpl(const Field & src, const IDataType & type, const ID
|
||||
return dynamic_cast<const IDataTypeEnum &>(type).castToValue(src);
|
||||
}
|
||||
|
||||
if (which_type.isDateOrDateTime() && src.getType() == Field::Types::UInt64)
|
||||
{
|
||||
/// We don't need any conversion UInt64 is under type of Date and DateTime
|
||||
return src;
|
||||
}
|
||||
|
||||
if (src.getType() == Field::Types::String)
|
||||
{
|
||||
if (which_type.isDate())
|
||||
|
Loading…
Reference in New Issue
Block a user