Skip to content

Commit

Permalink
fix removeproject error
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Jul 25, 2022
1 parent 82118e8 commit 3bd1d70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/graph/optimizer/rule/RemoveNoopProjectRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ namespace opt {
PlanNode::Kind::kSubgraph,
PlanNode::Kind::kDataCollect,
PlanNode::Kind::kLeftJoin,
PlanNode::Kind::kUnwind,
PlanNode::Kind::kInnerJoin,
PlanNode::Kind::kBiLeftJoin,
PlanNode::Kind::kBiInnerJoin,
Expand Down
1 change: 1 addition & 0 deletions src/graph/planner/plan/Query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ std::unique_ptr<PlanNodeDescription> Unwind::explain() const {

PlanNode* Unwind::clone() const {
auto* newUnwind = Unwind::make(qctx_, nullptr);
newUnwind->setFromPipe(fromPipe_);
newUnwind->cloneMembers(*this);
return newUnwind;
}
Expand Down
4 changes: 2 additions & 2 deletions src/graph/planner/plan/Query.h
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,8 @@ class Unwind final : public SingleInputNode {
return fromPipe_;
}

void setFromPipe() {
fromPipe_ = true;
void setFromPipe(bool fromPipe) {
fromPipe_ = fromPipe;
}

PlanNode* clone() const override;
Expand Down
2 changes: 1 addition & 1 deletion src/graph/validator/UnwindValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Status UnwindValidator::validateImpl() {
Status UnwindValidator::toPlan() {
auto *unwind = Unwind::make(qctx_, nullptr, unwindExpr_, alias_);
unwind->setColNames({alias_});
unwind->setFromPipe();
unwind->setFromPipe(true);
root_ = tail_ = unwind;
return Status::OK();
}
Expand Down

0 comments on commit 3bd1d70

Please sign in to comment.