mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <Core/QueryProcessingStage.h>
|
|
#include <Interpreters/IInterpreter.h>
|
|
#include <Interpreters/InterpreterSelectWithUnionQuery.h>
|
|
#include <Interpreters/IInterpreterUnionOrSelectQuery.h>
|
|
#include <Parsers/ASTSelectIntersectExceptQuery.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
class InterpreterSelectQuery;
|
|
class QueryPlan;
|
|
|
|
class InterpreterSelectIntersectExceptQuery : public IInterpreterUnionOrSelectQuery
|
|
{
|
|
using Operator = ASTSelectIntersectExceptQuery::Operator;
|
|
|
|
public:
|
|
InterpreterSelectIntersectExceptQuery(
|
|
const ASTPtr & query_ptr_,
|
|
ContextPtr context_,
|
|
const SelectQueryOptions & options_);
|
|
|
|
BlockIO execute() override;
|
|
|
|
Block getSampleBlock() { return result_header; }
|
|
|
|
void ignoreWithTotals() override;
|
|
|
|
private:
|
|
static String getName() { return "SelectIntersectExceptQuery"; }
|
|
|
|
std::unique_ptr<IInterpreterUnionOrSelectQuery>
|
|
buildCurrentChildInterpreter(const ASTPtr & ast_ptr_);
|
|
|
|
void buildQueryPlan(QueryPlan & query_plan) override;
|
|
|
|
std::vector<std::unique_ptr<IInterpreterUnionOrSelectQuery>> nested_interpreters;
|
|
|
|
Operator final_operator;
|
|
};
|
|
|
|
}
|