From 4de036ba1c2775ee73a54e9f4682373bea408624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Tue, 12 Nov 2024 20:38:25 +0100 Subject: [PATCH] Update JoinNode.cpp --- src/Analyzer/JoinNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analyzer/JoinNode.cpp b/src/Analyzer/JoinNode.cpp index 71f7cbf0760..823b934c9d5 100644 --- a/src/Analyzer/JoinNode.cpp +++ b/src/Analyzer/JoinNode.cpp @@ -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);