Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Jan 7, 2022
1 parent 34a66d2 commit 98ac865
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/graph/util/ExpressionUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ StatusOr<Expression *> ExpressionUtils::filterTransform(const Expression *filter
}

// Check if any overflow happen before filter tranform
auto initilConstFold = foldConstantExpr(filter);
NG_RETURN_IF_ERROR(initilConstFold);
auto initialConstFold = foldConstantExpr(filter);
NG_RETURN_IF_ERROR(initialConstFold);

// Rewrite relational expression
auto rewrittenExpr = const_cast<Expression *>(filter);
auto rewrittenExpr = initialConstFold.value();
rewrittenExpr = rewriteRelExpr(rewrittenExpr);

// Fold constant expression
Expand Down
4 changes: 3 additions & 1 deletion tests/tck/features/match/Base.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -586,4 +586,6 @@ Feature: Basic match
"""
MATCH (v:player) WHERE v.player.name+'n'=="Tim Duncann" RETURN v
"""
Then the execution should be successful
Then the result should be, in any order:
| v |
| ("Tim Duncan":bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) |
4 changes: 3 additions & 1 deletion tests/tck/features/match/Base.feature
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,6 @@ Feature: Basic match
"""
MATCH (v:player) WHERE v.player.name+'n'=="Tim Duncann" RETURN v
"""
Then the execution should be successful
Then the result should be, in any order:
| v |
| ("Tim Duncan":bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) |

0 comments on commit 98ac865

Please sign in to comment.