MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / tryGetDatabaseAndTable

Method tryGetDatabaseAndTable

src/Interpreters/DatabaseCatalog.cpp:1204–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202}
1203
1204DatabaseAndTable DatabaseCatalog::tryGetDatabaseAndTable(const StorageID & table_id, ContextPtr local_context) const
1205{
1206 return local_context->hasQueryContext() ?
1207 local_context->getQueryContext()->getOrCacheStorage(table_id, [&](){ return getTableImpl(table_id, local_context, nullptr); }) :
1208 getTableImpl(table_id, local_context, nullptr);
1209}
1210
1211void DatabaseCatalog::loadMarkedAsDroppedTables()
1212{

Callers 3

getTargetTableImplMethod · 0.80
executeToTableImplMethod · 0.80

Calls 3

hasQueryContextMethod · 0.80
getOrCacheStorageMethod · 0.80
getQueryContextMethod · 0.45

Tested by

no test coverage detected