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