mv_dependencies: remove redundant code

This commit is contained in:
Ilya Golshtein 2024-11-18 00:38:26 +03:00
parent 3fcd892a36
commit 1bbfe5340a

View File

@ -777,11 +777,6 @@ void StorageMaterializedView::startup()
pushDependencies(); pushDependencies();
auto metadata_snapshot = getInMemoryMetadataPtr();
const auto & select_query = metadata_snapshot->getSelectQuery();
if (!select_query.select_table_id.empty())
DatabaseCatalog::instance().addViewDependency(select_query.select_table_id, getStorageID());
if (refresher) if (refresher)
refresher->startup(); refresher->startup();
} }