#include #include #include #include namespace DB { bool ParserSelectWithUnionQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { ASTPtr list_node; ParserList parser(std::make_unique(), std::make_unique("UNION ALL"), false); if (!parser.parse(pos, end, list_node, max_parsed_pos, expected)) return false; node = std::make_shared(list_node->range); node->children = list_node->children; return true; } }