mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
35 lines
785 B
C++
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;
|
|
};
|
|
|
|
}
|