| 1 | #include "duckdb/planner/binder.hpp" |
|---|---|
| 2 | #include "duckdb/planner/operator/logical_cross_product.hpp" |
| 3 | #include "duckdb/planner/tableref/bound_crossproductref.hpp" |
| 4 | |
| 5 | using namespace duckdb; |
| 6 | using namespace std; |
| 7 | |
| 8 | unique_ptr<LogicalOperator> Binder::CreatePlan(BoundCrossProductRef &expr) { |
| 9 | auto cross_product = make_unique<LogicalCrossProduct>(); |
| 10 | |
| 11 | auto left = CreatePlan(*expr.left); |
| 12 | auto right = CreatePlan(*expr.right); |
| 13 | |
| 14 | cross_product->AddChild(move(left)); |
| 15 | cross_product->AddChild(move(right)); |
| 16 | |
| 17 | return move(cross_product); |
| 18 | } |
| 19 |