| 1 | #include "duckdb/execution/operator/projection/physical_pivot.hpp" |
|---|---|
| 2 | #include "duckdb/execution/physical_plan_generator.hpp" |
| 3 | #include "duckdb/planner/operator/logical_pivot.hpp" |
| 4 | |
| 5 | namespace duckdb { |
| 6 | |
| 7 | unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalPivot &op) { |
| 8 | D_ASSERT(op.children.size() == 1); |
| 9 | auto child_plan = CreatePlan(op&: *op.children[0]); |
| 10 | auto pivot = make_uniq<PhysicalPivot>(args: std::move(op.types), args: std::move(child_plan), args: std::move(op.bound_pivot)); |
| 11 | return std::move(pivot); |
| 12 | } |
| 13 | |
| 14 | } // namespace duckdb |
| 15 |