Update InterpreterCreateQuery.cpp

This commit is contained in:
alexey-milovidov 2019-07-20 03:02:18 +03:00 committed by GitHub
parent f9d1214bbc
commit b035edefea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
{