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

Method makeQueryContext

src/Interpreters/DDLTask.cpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180ContextMutablePtr DDLTaskBase::makeQueryContext(ContextPtr from_context, const ZooKeeperPtr & /*zookeeper*/)
181{
182 auto query_context = Context::createCopy(from_context);
183 query_context->makeQueryContext();
184 query_context->setCurrentQueryId(""); // generate random query_id
185 query_context->getClientInfo().query_kind = ClientInfo::QueryKind::SECONDARY_QUERY;
186 if (entry.settings)
187 query_context->applySettingsChanges(*entry.settings);
188 return query_context;
189}
190
191
192bool DDLTask::findCurrentHostID(ContextPtr global_context, Poco::Logger * log)

Callers 15

processQueriesMethod · 0.45
executeByDropInsertMethod · 0.45
completeQueryMethod · 0.45
StorageLiveViewMethod · 0.45
streamToViewsMethod · 0.45
StorageRabbitMQMethod · 0.45
receivePlanSegmentMethod · 0.45
recoverLostReplicaMethod · 0.45

Calls 11

makeRemoveRequestFunction · 0.85
makeCreateRequestFunction · 0.85
makeSetRequestFunction · 0.85
setCurrentQueryIdMethod · 0.80
setCurrentDatabaseMethod · 0.80
addOpMethod · 0.80
toStringFunction · 0.70
applySettingsChangesMethod · 0.45
getDatabaseNameMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected