PR changed-lines coverage: 82.35% (42/51, 0 noise lines excluded) Uncovered changed code (with context): ================================================================================ src/Storages/MergeTree/MergeTreeData.cpp ================================================================================ --- uncovered block 6324-6324 --- 6322 | 6323 | if (!can_execute_alter_on_disk) >> 6324 | throw Exception(ErrorCodes::SUPPORT_IS_DISABLED, "Partition operation ALTER TABLE {} is not supported for disk '{}'", command.typeToString(), disk->getName()); 6325 | } 6326 | ================================================================================ src/Storages/StorageReplicatedMergeTree.cpp ================================================================================ --- uncovered block 7899-7899 --- 7897 | const auto * literal = partition->as(); 7898 | if (!literal) >> 7899 | throw Exception(ErrorCodes::BAD_ARGUMENTS, "Expected a string literal for part name, got: {}", partition->formatForErrorMessage()); 7900 | String part_name = literal->value.safeGet(); 7901 | auto part_path = findReplicaHavingPart(part_name, from, zookeeper); --- uncovered block 9450-9450 --- 9448 | throw Exception(ErrorCodes::BAD_ARGUMENTS, "Source and destination are the same"); 9449 | >> 9450 | auto zookeeper = getZooKeeperAndAssertNotReadonly(); 9451 | 9452 | const auto * literal = partition->as(); --- uncovered block 9452-9456 --- 9450 | auto zookeeper = getZooKeeperAndAssertNotReadonly(); 9451 | >> 9452 | const auto * literal = partition->as(); >> 9453 | if (!literal) >> 9454 | throw Exception(ErrorCodes::BAD_ARGUMENTS, "Expected a string literal for part name, got: {}", partition->formatForErrorMessage()); >> 9455 | String part_name = literal->value.safeGet(); >> 9456 | auto part_info = MergeTreePartInfo::fromPartName(part_name, format_version); 9457 | 9458 | auto part = getPartIfExists(part_info, {MergeTreeDataPartState::Active}); --- uncovered block 9458-9458 --- 9456 | auto part_info = MergeTreePartInfo::fromPartName(part_name, format_version); 9457 | >> 9458 | auto part = getPartIfExists(part_info, {MergeTreeDataPartState::Active}); 9459 | if (!part) 9460 | throw Exception(ErrorCodes::NO_SUCH_DATA_PART, "Part {} not found locally", part_name); WARNING: Failed to get start time for [Print Uncovered Code] - start time and duration won't be set