Skip to content

Commit 4ff771f

Browse files
authored
Merge pull request cmu-db#124 from cmu-db/2020_p3
Add Output Schema to Limit Plan
2 parents e3b34de + c1536e9 commit 4ff771f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/include/execution/plans/limit_plan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class LimitPlanNode : public AbstractPlanNode {
2727
* @param limit the number of output tuples
2828
* @param offset the number of rows to be skipped
2929
*/
30-
LimitPlanNode(const AbstractPlanNode *child, size_t limit, size_t offset)
31-
: AbstractPlanNode(nullptr, {child}), limit_(limit), offset_(offset) {}
30+
LimitPlanNode(const Schema *output_schema, const AbstractPlanNode *child, size_t limit, size_t offset)
31+
: AbstractPlanNode(output_schema, {child}), limit_(limit), offset_(offset) {}
3232

3333
PlanType GetType() const override { return PlanType::Limit; }
3434

0 commit comments

Comments
 (0)