mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
fix
This commit is contained in:
parent
d8ed645393
commit
7adfc52353
@ -104,6 +104,10 @@ bool ConstantNode::requiresCastCall(Field::Types::Which type, const DataTypePtr
|
||||
|
||||
bool ConstantNode::requiresCastCall(const DataTypePtr & field_type, const DataTypePtr & data_type)
|
||||
{
|
||||
WhichDataType which_field_type(field_type);
|
||||
if (which_field_type.isNullable() || which_field_type.isArray())
|
||||
return true;
|
||||
|
||||
return field_type->getTypeId() != data_type->getTypeId();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user