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

Method getTargetTable

src/Storages/StorageAlias.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54StoragePtr StorageAlias::getTargetTable(std::optional<TargetAccess> access_check) const
55{
56 if (access_check)
57 {
58 if (access_check->column_names.empty())
59 access_check->context->checkAccess(access_check->access_type, target_database, target_table);
60 else
61 access_check->context->checkAccess(access_check->access_type, target_database, target_table, access_check->column_names);
62 }
63
64 return DatabaseCatalog::instance().getTable(StorageID(target_database, target_table), getContext());
65}
66
67/// AliasSink: Writes data to the target table using full INSERT pipeline
68/// which triggers materialized views on the target table.

Callers 7

onStartMethod · 0.45
getConfigurationMethod · 0.45
executeMethod · 0.45
trySyncReplicaMethod · 0.45

Calls 5

StorageIDClass · 0.70
getContextFunction · 0.50
emptyMethod · 0.45
checkAccessMethod · 0.45
getTableMethod · 0.45

Tested by

no test coverage detected