mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Update DatabasesCommon.cpp
This commit is contained in:
parent
6ba4408741
commit
3abf1b278e
@ -71,7 +71,7 @@ std::pair<String, StoragePtr> createTableFromDefinition(
|
||||
|
||||
if (ast_create_query.as_table_function)
|
||||
{
|
||||
const auto * table_function = ast_create_query.as_table_function->as<ASTFunction>();
|
||||
const auto & table_function = ast_create_query.as_table_function->as<ASTFunction &>();
|
||||
const auto & factory = TableFunctionFactory::instance();
|
||||
StoragePtr storage = factory.get(table_function->name, context)->execute(ast_create_query.as_table_function, context, ast_create_query.table);
|
||||
return {ast_create_query.table, storage};
|
||||
|
Loading…
Reference in New Issue
Block a user