Merge pull request #45430 from ClickHouse/tavplubix-patch-1

Disable parallel quorum inserts with deprecated *MergeTree syntax
This commit is contained in:
Alexey Milovidov 2023-01-24 13:04:48 +03:00 committed by GitHub
commit 43eac58e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3763,7 +3763,7 @@ String StorageReplicatedMergeTree::findReplicaHavingCoveringPart(
void StorageReplicatedMergeTree::updateQuorum(const String & part_name, bool is_parallel)
{
if (is_parallel && format_version < MERGE_TREE_DATA_MIN_FORMAT_VERSION_WITH_CUSTOM_PARTITIONING)
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Parallel quorum inserts are not compatible with deprecated *MergeTree-syntax");
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Parallel quorum inserts are not compatible with the deprecated syntax of *MergeTree engines");
auto zookeeper = getZooKeeper();