1#include "duckdb/planner/binder.hpp"
2#include "duckdb/planner/operator/logical_cteref.hpp"
3#include "duckdb/planner/tableref/bound_cteref.hpp"
4
5using namespace duckdb;
6using namespace std;
7
8unique_ptr<LogicalOperator> Binder::CreatePlan(BoundCTERef &ref) {
9 auto index = ref.bind_index;
10
11 vector<TypeId> types;
12 for (auto &expr : ref.types) {
13 types.push_back(GetInternalType(expr.id));
14 }
15
16 return make_unique<LogicalCTERef>(index, ref.cte_index, types, ref.bound_columns);
17}
18