This commit is contained in:
Yakov Olkhovskiy 2024-12-16 13:21:32 +00:00
parent d8ed645393
commit 7adfc52353

View File

@ -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();
}