Update src/Storages/WindowView/StorageWindowView.cpp

Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
This commit is contained in:
vxider 2022-05-19 20:49:02 +08:00 committed by GitHub
parent 7ff8098272
commit 797edb0ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -465,6 +465,9 @@ void StorageWindowView::alter(
auto old_inner_table_id = inner_table_id;
modifying_query = true;
SCOPE_EXIT({
modifying_query = false;
});
shutdown();
auto inner_query = initInnerQuery(new_select_query->as<ASTSelectQuery &>(), local_context);