| 94 | } |
| 95 | |
| 96 | static ASTPtr makeUsingAST(const QueryTreeNodePtr & node) |
| 97 | { |
| 98 | const auto & list_node = node->as<ListNode &>(); |
| 99 | |
| 100 | auto expr_list = make_intrusive<ASTExpressionList>(); |
| 101 | expr_list->children.reserve(list_node.getNodes().size()); |
| 102 | |
| 103 | for (const auto & child : list_node.getNodes()) |
| 104 | { |
| 105 | ASTPtr node_ast = tryMakeUsingColumnASTWithAlias(child); |
| 106 | |
| 107 | if (!node_ast) |
| 108 | node_ast = child->toAST(); |
| 109 | |
| 110 | expr_list->children.push_back(std::move(node_ast)); |
| 111 | } |
| 112 | |
| 113 | return expr_list; |
| 114 | } |
| 115 | |
| 116 | ASTPtr JoinNode::toASTTableJoin() const |
| 117 | { |
no test coverage detected