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

Method getListOfSelects

src/Parsers/ASTSelectIntersectExceptQuery.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39ASTs ASTSelectIntersectExceptQuery::getListOfSelects() const
40{
41 /**
42 * Because of normalization actual number of selects is 2.
43 * But this is checked in InterpreterSelectIntersectExceptQuery.
44 */
45 ASTs selects;
46 for (const auto & child : children)
47 {
48 if (typeid_cast<ASTSelectQuery *>(child.get())
49 || typeid_cast<ASTSelectWithUnionQuery *>(child.get())
50 || typeid_cast<ASTSelectIntersectExceptQuery *>(child.get()))
51 selects.push_back(child);
52 }
53 return selects;
54}
55
56const char * ASTSelectIntersectExceptQuery::fromOperator(Operator op)
57{

Callers 7

visitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80

Calls 2

getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected