Skip to content

Commit

Permalink
add output schema to limit plan
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwenw committed Nov 12, 2020
1 parent 17a7ccb commit 6537ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/execution/plans/limit_plan.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class LimitPlanNode : public AbstractPlanNode {
* @param limit the number of output tuples
* @param offset the number of rows to be skipped
*/
LimitPlanNode(const AbstractPlanNode *child, size_t limit, size_t offset)
: AbstractPlanNode(nullptr, {child}), limit_(limit), offset_(offset) {}
LimitPlanNode(const Schema *output_schema, const AbstractPlanNode *child, size_t limit, size_t offset)
: AbstractPlanNode(output_schema, {child}), limit_(limit), offset_(offset) {}

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

Expand Down

0 comments on commit 6537ff5

Please sign in to comment.