From 1bbfe5340a5c7334502fecf099894ceb820ebaa7 Mon Sep 17 00:00:00 2001 From: Ilya Golshtein Date: Mon, 18 Nov 2024 00:38:26 +0300 Subject: [PATCH] mv_dependencies: remove redundant code --- src/Storages/StorageMaterializedView.cpp | 5 ----- 1 file changed, 5 deletions(-) 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(); }