| 1 | #include "duckdb/execution/operator/scan/physical_dummy_scan.hpp" |
|---|---|
| 2 | #include "duckdb/execution/physical_plan_generator.hpp" |
| 3 | #include "duckdb/planner/operator/logical_prepare.hpp" |
| 4 | #include "duckdb/execution/operator/helper/physical_prepare.hpp" |
| 5 | |
| 6 | using namespace duckdb; |
| 7 | using namespace std; |
| 8 | |
| 9 | unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalPrepare &op) { |
| 10 | assert(op.children.size() == 1); |
| 11 | |
| 12 | // generate physical plan |
| 13 | auto plan = CreatePlan(*op.children[0]); |
| 14 | op.prepared->types = plan->types; |
| 15 | op.prepared->plan = move(plan); |
| 16 | op.prepared->dependencies = move(dependencies); |
| 17 | |
| 18 | return make_unique<PhysicalPrepare>(op.name, move(op.prepared)); |
| 19 | } |
| 20 |