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

Method invalidate

src/QueryPlan/PlanCache.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void PlanCacheManager::invalidate(ContextMutablePtr)
93{
94// if (!cache)
95// throw Exception("CacheManager not initialized", ErrorCodes::LOGICAL_ERROR);
96
97// auto catalog = createConstCatalogAdaptor(context);
98// auto columns = catalog->getCollectableColumns(table);
99// cache->remove(std::make_pair(table.getUniqueKey(), ""));
100// for (auto & pr : columns)
101// {
102// auto & col_name = pr.name;
103// auto key = std::make_pair(table.getUniqueKey(), col_name);
104// cache->remove(key);
105// }
106}
107
108QueryPlanPtr PlanCacheManager::getPlanFromCache(UInt128 query_hash, ContextMutablePtr & context)
109{

Callers 1

finalizeAggregatesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected