mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
39 lines
830 B
C++
39 lines
830 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTSelectQuery.h>
|
|
#include "Parsers/ExpressionListParsers.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTSelectIntersectExceptQuery : public ASTSelectQuery
|
|
{
|
|
public:
|
|
String getID(char) const override { return "SelectIntersectExceptQuery"; }
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
enum class Operator
|
|
{
|
|
UNKNOWN,
|
|
EXCEPT_ALL,
|
|
EXCEPT_DISTINCT,
|
|
INTERSECT_ALL,
|
|
INTERSECT_DISTINCT,
|
|
};
|
|
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
QueryKind getQueryKind() const override { return QueryKind::Select; }
|
|
|
|
ASTs getListOfSelects() const;
|
|
|
|
static const char * fromOperator(Operator op);
|
|
|
|
/// Final operator after applying visitor.
|
|
Operator final_operator = Operator::UNKNOWN;
|
|
};
|
|
|
|
}
|