mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Update Context.cpp
This commit is contained in:
parent
553304a81a
commit
a336f06f57
@ -1581,7 +1581,7 @@ StoragePtr Context::executeTableFunction(const ASTPtr & table_expression, const
|
|||||||
{
|
{
|
||||||
auto query = table->getInMemoryMetadataPtr()->getSelectQuery().inner_query->clone();
|
auto query = table->getInMemoryMetadataPtr()->getSelectQuery().inner_query->clone();
|
||||||
NameToNameMap parameterized_view_values = analyzeFunctionParamValues(table_expression);
|
NameToNameMap parameterized_view_values = analyzeFunctionParamValues(table_expression);
|
||||||
StorageView::replaceQueryParametersIfParametrizedView(query,parameterized_view_values);
|
StorageView::replaceQueryParametersIfParametrizedView(query, parameterized_view_values);
|
||||||
|
|
||||||
ASTCreateQuery create;
|
ASTCreateQuery create;
|
||||||
create.select = query->as<ASTSelectWithUnionQuery>();
|
create.select = query->as<ASTSelectWithUnionQuery>();
|
||||||
|
Loading…
Reference in New Issue
Block a user