| 1 | #include "duckdb/planner/binder.hpp" |
|---|---|
| 2 | #include "duckdb/planner/operator/logical_cteref.hpp" |
| 3 | #include "duckdb/planner/tableref/bound_cteref.hpp" |
| 4 | |
| 5 | using namespace duckdb; |
| 6 | using namespace std; |
| 7 | |
| 8 | unique_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 |