| 90 | } |
| 91 | |
| 92 | void 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 | |
| 108 | QueryPlanPtr PlanCacheManager::getPlanFromCache(UInt128 query_hash, ContextMutablePtr & context) |
| 109 | { |