Fix build

This commit is contained in:
alesapin 2022-02-21 11:54:52 +03:00
parent 852757219f
commit d7cae5ffb4

View File

@ -766,10 +766,9 @@ bool AlterCommand::isRequireMutationStage(const StorageInMemoryMetadata & metada
if (type == DROP_INDEX || type == DROP_PROJECTION || type == RENAME_COLUMN)
return true;
/// Drop alias is metadata alter, in other case mutation
/// is required.
/// Drop alias is metadata alter, in other case mutation is required.
if (type == DROP_COLUMN)
return metadata->columns.hasPhysical(column_name);
return metadata.columns.hasPhysical(column_name);
if (type != MODIFY_COLUMN || data_type == nullptr)
return false;