@@ -2268,7 +2268,7 @@ void StorageMergeTree::replacePartitionFrom(const StoragePtr & source_table, con
22682268
22692269 static const String TMP_PREFIX = " tmp_replace_from_" ;
22702270
2271- bool are_policies_partition_compatible = getStoragePolicy ()->isCompatibleForPartitionOps (source_table->getStoragePolicy ());
2271+ bool are_policies_partition_op_compatible = getStoragePolicy ()->isCompatibleForPartitionOps (source_table->getStoragePolicy ());
22722272 for (const DataPartPtr & src_part : src_parts)
22732273 {
22742274 if (is_all)
@@ -2295,7 +2295,7 @@ void StorageMergeTree::replacePartitionFrom(const StoragePtr & source_table, con
22952295 clone_params,
22962296 local_context->getReadSettings (),
22972297 local_context->getWriteSettings (),
2298- !are_policies_partition_compatible /* must_on_same_disk*/ );
2298+ !are_policies_partition_op_compatible /* must_on_same_disk*/ );
22992299 dst_parts.emplace_back (std::move (dst_part));
23002300 dst_parts_locks.emplace_back (std::move (part_lock));
23012301 }
@@ -2372,12 +2372,13 @@ void StorageMergeTree::movePartitionToTable(const StoragePtr & dest_table, const
23722372 throw Exception (ErrorCodes::NOT_IMPLEMENTED,
23732373 " Table {} supports movePartitionToTable only for MergeTree family of table engines. Got {}" ,
23742374 getStorageID ().getNameForLogs (), dest_table->getName ());
2375- bool are_policies_partition_compatible = getStoragePolicy ()->isCompatibleForPartitionOps (dest_table_storage->getStoragePolicy ());
2375+ bool are_policies_partition_op_compatible = getStoragePolicy ()->isCompatibleForPartitionOps (dest_table_storage->getStoragePolicy ());
23762376
2377- if (!are_policies_partition_compatible )
2377+ if (!are_policies_partition_op_compatible )
23782378 throw Exception (
23792379 ErrorCodes::UNKNOWN_POLICY,
2380- " Destination table {} should have the same or partition compatible storage policy of source table {}. {}: {}, {}: {}" ,
2380+ " Destination table {} should have the same storage policy of source table, or the policies must be compatible for partition "
2381+ " operations {}. {}: {}, {}: {}" ,
23812382 dest_table_storage->getStorageID ().getNameForLogs (),
23822383 getStorageID ().getNameForLogs (),
23832384 getStorageID ().getNameForLogs (),
@@ -2443,7 +2444,7 @@ void StorageMergeTree::movePartitionToTable(const StoragePtr & dest_table, const
24432444 clone_params,
24442445 local_context->getReadSettings (),
24452446 local_context->getWriteSettings (),
2446- !are_policies_partition_compatible /* must_on_same_disk*/
2447+ !are_policies_partition_op_compatible /* must_on_same_disk*/
24472448 );
24482449
24492450 dst_parts.emplace_back (std::move (dst_part));
0 commit comments