diff --git a/src/Interpreters/DatabaseCatalog.cpp b/src/Interpreters/DatabaseCatalog.cpp index fd6b5b9a810..73884476091 100644 --- a/src/Interpreters/DatabaseCatalog.cpp +++ b/src/Interpreters/DatabaseCatalog.cpp @@ -608,6 +608,12 @@ Dependencies DatabaseCatalog::getDependencies(const StorageID & from) const return {}; return Dependencies(iter->second.begin(), iter->second.end()); } + +void DatabaseCatalog::getViewDependencies(ViewDependencies & view_dependencies_) const +{ + std::lock_guard lock{databases_mutex}; + view_dependencies_ = view_dependencies; +} void DatabaseCatalog::updateDependency(const StorageID & old_from, const StorageID & old_where, const StorageID & new_from,