#include #include #include #include #include namespace DB { BlockIO InterpreterDropAccessEntityQuery::execute() { const auto & query = query_ptr->as(); auto & access_control = context.getAccessControlManager(); using Kind = ASTDropAccessEntityQuery::Kind; switch (query.kind) { case Kind::QUOTA: { context.checkQuotaManagementIsAllowed(); if (query.if_exists) access_control.tryRemove(access_control.find(query.names)); else access_control.remove(access_control.getIDs(query.names)); return {}; } } __builtin_unreachable(); } }