Update StorageMaterializedView.cpp

This commit is contained in:
Nikolay Degterinsky 2024-06-28 02:20:35 +02:00 committed by GitHub
parent f838c25d20
commit cb3d0ed275
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,6 +161,7 @@ StorageMaterializedView::StorageMaterializedView(
manual_create_query->setDatabase(getStorageID().database_name); manual_create_query->setDatabase(getStorageID().database_name);
manual_create_query->setTable(generateInnerTableName(getStorageID())); manual_create_query->setTable(generateInnerTableName(getStorageID()));
manual_create_query->uuid = query.to_inner_uuid; manual_create_query->uuid = query.to_inner_uuid;
manual_create_query->has_uuid = true;
auto new_columns_list = std::make_shared<ASTColumns>(); auto new_columns_list = std::make_shared<ASTColumns>();
new_columns_list->set(new_columns_list->columns, query.columns_list->columns->ptr()); new_columns_list->set(new_columns_list->columns, query.columns_list->columns->ptr());