mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Allow attach table with storage_policy + disk for backward compatibility
This commit is contained in:
parent
cefecafcb7
commit
71b1b76e3b
@ -324,7 +324,7 @@ void MergeTreeSettingsImpl::loadFromQuery(ASTStorage & storage_def, ContextPtr c
|
||||
else if (name == "storage_policy")
|
||||
found_storage_policy_setting = true;
|
||||
|
||||
if (found_disk_setting && found_storage_policy_setting)
|
||||
if (!is_attach && found_disk_setting && found_storage_policy_setting)
|
||||
{
|
||||
throw Exception(
|
||||
ErrorCodes::BAD_ARGUMENTS,
|
||||
|
Loading…
Reference in New Issue
Block a user