mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
37 lines
773 B
C++
37 lines
773 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTSelectIntersectExceptQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
String getID(char) const override { return "SelectIntersectExceptQuery"; }
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
const char * getQueryKindString() const override { return "SelectIntersectExcept"; }
|
|
|
|
enum class Operator
|
|
{
|
|
UNKNOWN,
|
|
INTERSECT,
|
|
EXCEPT
|
|
};
|
|
|
|
using Operators = std::vector<Operator>;
|
|
|
|
ASTPtr list_of_selects;
|
|
Operators list_of_operators;
|
|
|
|
/// Final operator after applying visitor.
|
|
Operator final_operator = Operator::UNKNOWN;
|
|
};
|
|
|
|
}
|