1 | #include "duckdb/planner/binder.hpp" |
---|---|
2 | #include "duckdb/planner/tableref/bound_subqueryref.hpp" |
3 | |
4 | using namespace duckdb; |
5 | using namespace std; |
6 | |
7 | unique_ptr<LogicalOperator> Binder::CreatePlan(BoundSubqueryRef &ref) { |
8 | // generate the logical plan for the subquery |
9 | // this happens separately from the current LogicalPlan generation |
10 | ref.binder->plan_subquery = plan_subquery; |
11 | auto subquery = ref.binder->CreatePlan(*ref.subquery); |
12 | if (ref.binder->has_unplanned_subqueries) { |
13 | has_unplanned_subqueries = true; |
14 | } |
15 | return subquery; |
16 | } |
17 |