1 | #include "duckdb/execution/operator/scan/physical_expression_scan.hpp" |
---|---|
2 | #include "duckdb/execution/physical_plan_generator.hpp" |
3 | #include "duckdb/planner/operator/logical_expression_get.hpp" |
4 | |
5 | using namespace duckdb; |
6 | using namespace std; |
7 | |
8 | unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalExpressionGet &op) { |
9 | assert(op.children.size() == 1); |
10 | auto plan = CreatePlan(*op.children[0]); |
11 | |
12 | auto expr_scan = make_unique<PhysicalExpressionScan>(op.types, move(op.expressions)); |
13 | expr_scan->children.push_back(move(plan)); |
14 | return move(expr_scan); |
15 | } |
16 |