Skip to content

Commit

Permalink
Merge pull request #4294 from yandex/optimize-better-error-message
Browse files Browse the repository at this point in the history
Slightly better message with reason for OPTIMIZE query with "optimize_throw_if_noop"
  • Loading branch information
alexey-milovidov authored Feb 6, 2019
2 parents 2686f64 + 89861f8 commit 1d7b120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbms/src/Storages/StorageMergeTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ bool StorageMergeTree::merge(
UInt64 max_source_parts_size = merger_mutator.getMaxSourcePartsSize();
if (max_source_parts_size > 0)
selected = merger_mutator.selectPartsToMerge(future_part, aggressive, max_source_parts_size, can_merge, out_disable_reason);
else if (out_disable_reason)
*out_disable_reason = "Current value of max_source_parts_size is zero";
}
else
{
Expand Down

0 comments on commit 1d7b120

Please sign in to comment.