use isNullable function in join_common/convertTypeToNullable

This commit is contained in:
vdimir 2022-02-18 13:09:11 +00:00
parent 510a909d0d
commit 6eda8ef914
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -127,7 +127,7 @@ bool isNullable(const DataTypePtr & type)
/// Note: LowCardinality(T) transformed to LowCardinality(Nullable(T))
DataTypePtr convertTypeToNullable(const DataTypePtr & type)
{
if (type->isNullable())
if (isNullable(type))
return type;
if (const auto * low_cardinality_type = typeid_cast<const DataTypeLowCardinality *>(type.get()))