mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
CLICKHOUSE-3714
This commit is contained in:
parent
08fe108ba8
commit
98c33de4e3
@ -303,7 +303,7 @@ bool StorageMaterializedView::checkPartitionCanBeDroppedDetachReplace(const ASTP
|
||||
if (!target_table)
|
||||
return true;
|
||||
|
||||
return target_table->checkPartitionCanBeDroppedAttachReplace(partition);
|
||||
return target_table->checkPartitionCanBeDroppedDetachReplace(partition);
|
||||
}
|
||||
|
||||
void registerStorageMaterializedView(StorageFactory & factory)
|
||||
|
@ -3363,7 +3363,7 @@ bool StorageReplicatedMergeTree::checkPartitionCanBeDroppedDetachReplace(const A
|
||||
|
||||
for (const auto & part : parts_to_remove)
|
||||
{
|
||||
context.checkPartitionCanBeDroppedAttachReplace(database_name, table_name, part->getTotalColumnsSize().data_compressed);
|
||||
context.checkPartitionCanBeDroppedDetachReplace(database_name, table_name, part->getTotalColumnsSize().data_compressed);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user