mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
37 lines
775 B
C++
37 lines
775 B
C++
#pragma once
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <Parsers/IAST.h>
|
|
#include <Interpreters/InDepthNodeVisitor.h>
|
|
|
|
#include <Parsers/ASTSelectIntersectExceptQuery.h>
|
|
#include <Core/SettingsEnums.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTFunction;
|
|
class ASTSelectWithUnionQuery;
|
|
|
|
class SelectIntersectExceptQueryMatcher
|
|
{
|
|
public:
|
|
struct Data
|
|
{
|
|
const SetOperationMode intersect_default_mode;
|
|
const SetOperationMode except_default_mode;
|
|
};
|
|
|
|
static bool needChildVisit(const ASTPtr &, const ASTPtr &) { return true; }
|
|
|
|
static void visit(ASTPtr & ast, Data &);
|
|
static void visit(ASTSelectWithUnionQuery &, Data &);
|
|
};
|
|
|
|
/// Visit children first.
|
|
using SelectIntersectExceptQueryVisitor
|
|
= InDepthNodeVisitor<SelectIntersectExceptQueryMatcher, false>;
|
|
}
|