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
5namespace duckdb {
6
7unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalUnnest &op) {
8 D_ASSERT(op.children.size() == 1);
9 auto plan = CreatePlan(op&: *op.children[0]);
10 auto unnest = make_uniq<PhysicalUnnest>(args&: op.types, args: std::move(op.expressions), args&: op.estimated_cardinality);
11 unnest->children.push_back(x: std::move(plan));
12 return std::move(unnest);
13}
14
15} // namespace duckdb
16