This commit is contained in:
Nikolai Kochetov 2022-10-06 20:27:55 +02:00
parent c8c96ecca3
commit c1cc04d44d

View File

@ -755,9 +755,9 @@ bool isMetadataOnlyConversion(const IDataType * from, const IDataType * to)
const auto * nullable_from = typeid_cast<const DataTypeNullable *>(from);
const auto * nullable_to = typeid_cast<const DataTypeNullable *>(to);
if (nullable_to)
if (nullable_from && nullable_to)
{
from = nullable_from ? nullable_from->getNestedType().get() : from;
from = nullable_from->getNestedType().get();
to = nullable_to->getNestedType().get();
continue;
}