Current section
Files
Jump to
Current section
Files
c_src/duckdb/src/planner/binder/tableref/plan_cteref.cpp
#include "duckdb/planner/binder.hpp"
#include "duckdb/planner/operator/logical_cteref.hpp"
#include "duckdb/planner/tableref/bound_cteref.hpp"
namespace duckdb {
unique_ptr<LogicalOperator> Binder::CreatePlan(BoundCTERef &ref) {
auto index = ref.bind_index;
vector<LogicalType> types;
for (auto &type : ref.types) {
types.push_back(type);
}
return make_unique<LogicalCTERef>(index, ref.cte_index, types, ref.bound_columns);
}
} // namespace duckdb