mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update InterpreterCreateQuery.cpp
This commit is contained in:
parent
f9d1214bbc
commit
b035edefea
@ -523,9 +523,9 @@ BlockIO InterpreterCreateQuery::createTable(ASTCreateQuery & create)
|
||||
|
||||
if (create.as_table_function)
|
||||
{
|
||||
const auto * table_function = create.as_table_function->as<ASTFunction>();
|
||||
const auto & table_function = create.as_table_function->as<ASTFunction &>();
|
||||
const auto & factory = TableFunctionFactory::instance();
|
||||
as_storage = factory.get(table_function->name, context)->execute(create.as_table_function, context, create.table);
|
||||
as_storage = factory.get(table_function.name, context)->execute(create.as_table_function, context, create.table);
|
||||
}
|
||||
if (!as_table_name.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user