ClickHouse/src/Parsers/ASTSelectIntersectExceptQuery.h
2021-12-29 15:42:58 +01:00

35 lines
785 B
C++

#pragma once
#include <Parsers/ASTSelectQuery.h>
namespace DB
{
class ASTSelectIntersectExceptQuery : public ASTSelectQuery
{
public:
String getID(char) const override { return "SelectIntersectExceptQuery"; }
ASTPtr clone() const override;
enum class Operator
{
UNKNOWN,
INTERSECT,
EXCEPT
};
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
const char * getQueryKindString() const override { return "SelectIntersectExcept"; }
virtual QueryKind getQueryKind() const override { return QueryKind::SelectIntersectExcept; }
ASTs getListOfSelects() const;
/// Final operator after applying visitor.
Operator final_operator = Operator::UNKNOWN;
};
}