1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/main/relation/setop_relation.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/main/relation.hpp"
12#include "duckdb/common/enums/set_operation_type.hpp"
13
14namespace duckdb {
15
16class SetOpRelation : public Relation {
17public:
18 SetOpRelation(shared_ptr<Relation> left, shared_ptr<Relation> right, SetOperationType setop_type);
19
20 shared_ptr<Relation> left;
21 shared_ptr<Relation> right;
22 SetOperationType setop_type;
23 vector<ColumnDefinition> columns;
24
25public:
26 unique_ptr<QueryNode> GetQueryNode() override;
27
28 const vector<ColumnDefinition> &Columns() override;
29 string ToString(idx_t depth) override;
30 string GetAlias() override;
31};
32
33} // namespace duckdb
34