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

Method replaceDatabaseAndTable

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

NOTE(renming):: we should avoid using this function since it didn't handle catalog correctly.

Source from the content-addressed store, hash-verified

450
451// NOTE(renming):: we should avoid using this function since it didn't handle catalog correctly.
452void ASTSelectQuery::replaceDatabaseAndTable(const String & database_name, const String & table_name)
453{
454 assert(database_name != "_temporary_and_external_tables");
455 replaceDatabaseAndTable(StorageID(database_name, table_name));
456}
457
458void ASTSelectQuery::replaceDatabaseAndTable(const StorageID & table_id)
459{

Callers 15

refreshWhereMethod · 0.80
createSourcesMethod · 0.80
rewriteSelectQueryFunction · 0.80
distributedWriteMethod · 0.80
extractDependentTableFunction · 0.80
computeTableScanHashMethod · 0.80
planTableScanMethod · 0.80
planReadFromStorageMethod · 0.80

Calls 7

StorageIDClass · 0.70
getFirstTableExpressionFunction · 0.70
getTableExpressionAliasFunction · 0.70
emplace_backMethod · 0.45
getMethod · 0.45
emptyMethod · 0.45
setAliasMethod · 0.45

Tested by

no test coverage detected