Fixing test.

This commit is contained in:
Nikolai Kochetov 2024-06-05 13:41:25 +00:00
parent c108c51f64
commit 0525eeb3d8

View File

@ -177,15 +177,7 @@ DataTypePtr removeNullableOrLowCardinalityNullable(const DataTypePtr & type)
bool canContainNull(const IDataType & type)
{
if (type.isNullable() || type.isLowCardinalityNullable() || isDynamic(type))
return true;
if (const auto * variant = typeid_cast<const DataTypeVariant *>(&type))
for (const auto & elem : variant->getVariants())
if (canContainNull(*elem))
return true;
return false;
return type.isNullable() || type.isLowCardinalityNullable() || isDynamic(type) || isVariant(type);
}
}