Update Context.cpp

This commit is contained in:
Alexey Milovidov 2023-07-30 05:46:05 +03:00 committed by GitHub
parent 553304a81a
commit a336f06f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1581,7 +1581,7 @@ StoragePtr Context::executeTableFunction(const ASTPtr & table_expression, const
{
auto query = table->getInMemoryMetadataPtr()->getSelectQuery().inner_query->clone();
NameToNameMap parameterized_view_values = analyzeFunctionParamValues(table_expression);
StorageView::replaceQueryParametersIfParametrizedView(query,parameterized_view_values);
StorageView::replaceQueryParametersIfParametrizedView(query, parameterized_view_values);
ASTCreateQuery create;
create.select = query->as<ASTSelectWithUnionQuery>();