#include #include #include #include #include #include namespace DB { BlockIO InterpreterCreateNamedCollectionQuery::execute() { auto current_context = getContext(); const auto & query = query_ptr->as(); current_context->checkAccess(AccessType::CREATE_NAMED_COLLECTION, query.collection_name); if (!query.cluster.empty()) { DDLQueryOnClusterParams params; return executeDDLQueryOnCluster(query_ptr, current_context, params); } NamedCollectionUtils::createFromSQL(query, current_context); return {}; } }