1#include "duckdb/execution/operator/helper/physical_limit.hpp"
2#include "duckdb/execution/physical_plan_generator.hpp"
3#include "duckdb/planner/operator/logical_limit.hpp"
4
5using namespace duckdb;
6using namespace std;
7
8unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalLimit &op) {
9 assert(op.children.size() == 1);
10
11 auto plan = CreatePlan(*op.children[0]);
12
13 auto limit = make_unique<PhysicalLimit>(op, op.limit, op.offset);
14 limit->children.push_back(move(plan));
15 return move(limit);
16}
17