diff --git a/src/graph/planner/match/MatchSolver.cpp b/src/graph/planner/match/MatchSolver.cpp index 8687d906893..679829937d7 100644 --- a/src/graph/planner/match/MatchSolver.cpp +++ b/src/graph/planner/match/MatchSolver.cpp @@ -207,8 +207,7 @@ Expression* MatchSolver::makeIndexFilter(const std::string& label, auto* root = relationals[0]; for (auto i = 1u; i < relationals.size(); i++) { - auto* left = root; - root = LogicalExpression::makeAnd(qctx->objPool(), left, relationals[i]); + root = LogicalExpression::makeAnd(qctx->objPool(), root, relationals[i]); } return root; diff --git a/src/graph/planner/match/StartVidFinder.h b/src/graph/planner/match/StartVidFinder.h index 7726ef0b646..531d9dc54f1 100644 --- a/src/graph/planner/match/StartVidFinder.h +++ b/src/graph/planner/match/StartVidFinder.h @@ -28,7 +28,7 @@ using StartVidFinderInstantiateFunc = std::function