Skip to content

Commit

Permalink
Stop scanEdge optRule when track_previous_path
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed Mar 16, 2022
1 parent a57acd0 commit 038a2ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graph/optimizer/rule/GetEdgesTransformRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ bool GetEdgesTransformRule::match(OptContext *ctx, const MatchedResult &matched)
if (traverse->stepRange() != nullptr) {
return false;
}
auto appendVertcies = static_cast<const AppendVertices *>(matched.planNode({0, 0, 0}));
if (appendVertcies->trackPrevPath()) {
return false;
}
return true;
}

Expand Down

0 comments on commit 038a2ea

Please sign in to comment.