Update JoinNode.cpp

This commit is contained in:
Raúl Marín 2024-11-12 20:38:25 +01:00 committed by GitHub
parent f8aed1a2fa
commit 4de036ba1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);