mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Fixing test.
This commit is contained in:
parent
c108c51f64
commit
0525eeb3d8
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user