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