| 114 | } |
| 115 | |
| 116 | ASTPtr JoinNode::toASTTableJoin() const |
| 117 | { |
| 118 | auto join_ast = make_intrusive<ASTTableJoin>(); |
| 119 | join_ast->locality = locality; |
| 120 | join_ast->strictness = strictness; |
| 121 | join_ast->kind = kind; |
| 122 | join_ast->is_natural = is_natural && !hasJoinExpression(); |
| 123 | |
| 124 | if (children[join_expression_child_index]) |
| 125 | { |
| 126 | if (is_using_join_expression) |
| 127 | { |
| 128 | join_ast->using_expression_list = makeUsingAST(children[join_expression_child_index]); |
| 129 | join_ast->children.push_back(join_ast->using_expression_list); |
| 130 | } |
| 131 | else |
| 132 | { |
| 133 | join_ast->on_expression = children[join_expression_child_index]->toAST(); |
| 134 | join_ast->children.push_back(join_ast->on_expression); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | return join_ast; |
| 139 | } |
| 140 | |
| 141 | void JoinNode::dumpTreeImpl(WriteBuffer & buffer, FormatState & format_state, size_t indent) const |
| 142 | { |
nothing calls this directly
no test coverage detected