blob: d15d2802456a8ca9784ecec020afa1f28ecddc62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include <Processors/QueryPlan/IQueryPlanStep.h>
#include <Parsers/ASTSelectIntersectExceptQuery.h>
namespace DB
{
class IntersectOrExceptStep : public IQueryPlanStep
{
public:
using Operator = ASTSelectIntersectExceptQuery::Operator;
/// max_threads is used to limit the number of threads for result pipeline.
IntersectOrExceptStep(DataStreams input_streams_, Operator operator_, size_t max_threads_ = 0);
String getName() const override { return "IntersectOrExcept"; }
QueryPipelineBuilderPtr updatePipeline(QueryPipelineBuilders pipelines, const BuildQueryPipelineSettings & settings) override;
void describePipeline(FormatSettings & settings) const override;
private:
Block header;
Operator current_operator;
size_t max_threads;
};
}
|