mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Update JoinNode.cpp
This commit is contained in:
parent
f8aed1a2fa
commit
4de036ba1c
@ -45,7 +45,7 @@ ASTPtr JoinNode::toASTTableJoin() const
|
||||
{
|
||||
auto join_expression_ast = children[join_expression_child_index]->toAST();
|
||||
|
||||
if (is_using_join_expression)
|
||||
if (children[join_expression_child_index]->getNodeType() == QueryTreeNodeType::LIST)
|
||||
{
|
||||
join_ast->using_expression_list = join_expression_ast;
|
||||
join_ast->children.push_back(join_ast->using_expression_list);
|
||||
|
Loading…
Reference in New Issue
Block a user