diff --git a/src/Storages/StorageMaterializedView.cpp b/src/Storages/StorageMaterializedView.cpp index 792c7baab0e..5afbe9da65d 100644 --- a/src/Storages/StorageMaterializedView.cpp +++ b/src/Storages/StorageMaterializedView.cpp @@ -777,11 +777,6 @@ void StorageMaterializedView::startup() 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) refresher->startup(); }