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

Method replaceDatabaseAndTable

src/Parsers/ASTSelectQuery.cpp:452–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void ASTSelectQuery::replaceDatabaseAndTable(const String & database_name, const String & table_name)
453{
454 chassert(database_name != "_temporary_and_external_tables");
455 replaceDatabaseAndTable(StorageID(database_name, table_name));
456}
457
458void ASTSelectQuery::replaceDatabaseAndTable(const StorageID & table_id)
459{

Callers 6

createPlanForTableMethod · 0.80
buildSelectQueryPlanFunction · 0.80
interpretSubqueryFunction · 0.80
rewriteSelectQueryFunction · 0.80

Calls 8

getTableExpressionAliasFunction · 0.85
setOrReplaceMethod · 0.80
StorageIDClass · 0.70
getFirstTableExpressionFunction · 0.70
emplace_backMethod · 0.45
getMethod · 0.45
emptyMethod · 0.45
setAliasMethod · 0.45

Tested by

no test coverage detected