MCPcopy Create free account
hub / github.com/ByConity/ByConity / createTable

Method createTable

src/Databases/PostgreSQL/DatabaseMaterializedPostgreSQL.cpp:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155
156void DatabaseMaterializedPostgreSQL::createTable(ContextPtr local_context, const String & table_name, const StoragePtr & table, const ASTPtr & query)
157{
158 /// Create table query can only be called from replication thread.
159 if (local_context->isInternalQuery())
160 {
161 DatabaseAtomic::createTable(local_context, table_name, table, query);
162 return;
163 }
164
165 throw Exception(ErrorCodes::NOT_IMPLEMENTED,
166 "Create table query allowed only for ReplacingMergeTree engine and from synchronization thread");
167}
168
169
170void DatabaseMaterializedPostgreSQL::shutdown()

Callers

nothing calls this directly

Calls 3

isInternalQueryMethod · 0.80
createTableFunction · 0.50
ExceptionClass · 0.50

Tested by

no test coverage detected