Revert "Revert #27787"

This reverts commit c1cc04d44d.
This commit is contained in:
Nikolai Kochetov 2022-10-18 14:00:50 +00:00
parent 29513f6a1f
commit a5711fda44

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_from && nullable_to)
if (nullable_to)
{
from = nullable_from->getNestedType().get();
from = nullable_from ? nullable_from->getNestedType().get() : from;
to = nullable_to->getNestedType().get();
continue;
}