MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / toASTTableJoin

Method toASTTableJoin

src/Analyzer/JoinNode.cpp:116–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116ASTPtr 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
141void JoinNode::dumpTreeImpl(WriteBuffer & buffer, FormatState & format_state, size_t indent) const
142{

Callers

nothing calls this directly

Calls 3

makeUsingASTFunction · 0.85
push_backMethod · 0.45
toASTMethod · 0.45

Tested by

no test coverage detected