1 | #pragma once |
2 | |
3 | #include <Parsers/ASTQueryWithOutput.h> |
4 | |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | /** Single SELECT query or multiple SELECT queries with UNION ALL. |
10 | * Only UNION ALL is possible. No UNION DISTINCT or plain UNION. |
11 | */ |
12 | class ASTSelectWithUnionQuery : public ASTQueryWithOutput |
13 | { |
14 | public: |
15 | String getID(char) const override { return "SelectWithUnionQuery" ; } |
16 | |
17 | ASTPtr clone() const override; |
18 | void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override; |
19 | |
20 | ASTPtr list_of_selects; |
21 | }; |
22 | |
23 | } |
24 | |