mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Added support for DETACH DICTIONARY PERMANENTLY
This commit is contained in:
parent
e5079c87db
commit
6ba83eccd3
@ -169,9 +169,6 @@ BlockIO InterpreterDropQuery::executeToTableImpl(ASTDropQuery & query, DatabaseP
|
||||
|
||||
if (query.permanently)
|
||||
{
|
||||
if (table->isDictionary())
|
||||
throw Exception("DETACH PERMANENTLY is not implemented for dictionaries", ErrorCodes::NOT_IMPLEMENTED);
|
||||
|
||||
/// Drop table from memory, don't touch data, metadata file renamed and will be skipped during server restart
|
||||
database->detachTablePermanently(getContext(), table_id.table_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user