Skip to content

Commit

Permalink
Add query settings to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdi committed Dec 17, 2023
1 parent 79dd0c3 commit 239815a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Interpreters/Context.cpp
Expand Up @@ -4044,7 +4044,8 @@ void Context::checkCanBeDropped(const String & database, const String & table, c
"2. File '{}' intended to force DROP {}\n"
"How to fix this:\n"
"1. Either increase (or set to zero) max_[table/partition]_size_to_drop in server config\n"
"2. Either create forcing file {} and make sure that ClickHouse has write permission for it.\n"
"2. Either pass a bigger (or set to zero) max_[table/partition]_size_to_drop through query settings\n"
"3. Either create forcing file {} and make sure that ClickHouse has write permission for it.\n"
"Example:\nsudo touch '{}' && sudo chmod 666 '{}'",
backQuoteIfNeed(database), backQuoteIfNeed(table),
size_str, max_size_to_drop_str,
Expand Down

0 comments on commit 239815a

Please sign in to comment.