Update src/Interpreters/InterpreterSelectQueryAnalyzer.cpp

This commit is contained in:
Dmitry Novik 2024-05-13 14:48:33 +02:00 committed by GitHub
parent fefd071ec7
commit 5e1a3b5601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,6 +56,7 @@ ASTPtr normalizeAndValidateQuery(const ASTPtr & query, const Names & column_name
if (column_names.empty())
return result_query;
/// The initial query the VIEW references to is wrapped here with another SELECT query to allow reading only necessary columns.
auto select_query = std::make_shared<ASTSelectQuery>();
auto result_table_expression_ast = std::make_shared<ASTTableExpression>();