2018-02-26 10:12:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/** Single SELECT query or multiple SELECT queries with UNION ALL.
|
|
|
|
* Only UNION ALL is possible. No UNION DISTINCT or plain UNION.
|
|
|
|
*/
|
|
|
|
class ASTSelectWithUnionQuery : public ASTQueryWithOutput
|
|
|
|
{
|
|
|
|
public:
|
2018-12-07 12:34:40 +00:00
|
|
|
String getID(char) const override { return "SelectWithUnionQuery"; }
|
2018-02-26 10:12:26 +00:00
|
|
|
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
|
|
|
|
ASTPtr list_of_selects;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|