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

Method tryGetTable

src/Databases/MySQL/DatabaseCnchMaterializedMySQL.cpp:146–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146StoragePtr DatabaseCnchMaterializedMySQL::tryGetTable(const String & name, ContextPtr local_context) const
147{
148 StoragePtr nested_storage = DatabaseCnch::tryGetTable(name, local_context);
149 if (!nested_storage)
150 return {};
151
152 if (!MaterializeMySQLSyncThread::isMySQLSyncThread() && !local_context->getSettings().force_manipulate_materialized_mysql_table)
153 return std::make_shared<StorageMaterializeMySQL>(std::move(nested_storage), this);
154
155 return nested_storage;
156}
157
158DatabaseTablesIteratorPtr DatabaseCnchMaterializedMySQL::getTablesIterator(ContextPtr local_context, const FilterByNameFunction & filter_by_table_name)
159{

Callers

nothing calls this directly

Calls 2

tryGetTableFunction · 0.85
getSettingsMethod · 0.45

Tested by

no test coverage detected