mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
update code style
This commit is contained in:
parent
a13b10a31c
commit
231e679710
@ -123,11 +123,11 @@ BlockIO InterpreterInsertQuery::execute()
|
|||||||
{
|
{
|
||||||
// Distributed INSERT SELECT
|
// Distributed INSERT SELECT
|
||||||
std::shared_ptr<StorageDistributed> storage_src;
|
std::shared_ptr<StorageDistributed> storage_src;
|
||||||
auto & select_ = query.select->as<ASTSelectWithUnionQuery &>();
|
auto & select = query.select->as<ASTSelectWithUnionQuery &>();
|
||||||
auto new_query = std::dynamic_pointer_cast<ASTInsertQuery>(query.clone());
|
auto new_query = std::dynamic_pointer_cast<ASTInsertQuery>(query.clone());
|
||||||
if (select_.list_of_selects->children.size() == 1)
|
if (select.list_of_selects->children.size() == 1)
|
||||||
{
|
{
|
||||||
auto & select_query = select_.list_of_selects->children.at(0)->as<ASTSelectQuery &>();
|
auto & select_query = select.list_of_selects->children.at(0)->as<ASTSelectQuery &>();
|
||||||
JoinedTables joined_tables(Context(context), select_query);
|
JoinedTables joined_tables(Context(context), select_query);
|
||||||
|
|
||||||
if (joined_tables.tablesCount() == 1)
|
if (joined_tables.tablesCount() == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user