From ca1d21b6633397ef056f7f1e299eff69de70359b Mon Sep 17 00:00:00 2001 From: alesapin Date: Tue, 29 Jun 2021 22:48:46 +0300 Subject: [PATCH] Update src/Storages/MergeTree/MergeTreeData.cpp Co-authored-by: tavplubix --- src/Storages/MergeTree/MergeTreeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index f897d833096..d74cd4ad509 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -2332,7 +2332,7 @@ MergeTreeData::DataPartsVector MergeTreeData::removePartsInRangeFromWorkingSet(c throw Exception("Unexpected partition_id of part " + part->name + ". This is a bug.", ErrorCodes::LOGICAL_ERROR); /// It's a DROP PART and it's already executed by fetching some covering part - bool is_drop_part = !drop_range.isFakeDropRangePart(); + bool is_drop_part = !drop_range.isFakeDropRangePart() && drop_range.min_block; if (is_drop_part && (part->info.min_block != drop_range.min_block || part->info.max_block != drop_range.max_block)) {