Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Nov 5, 2021
1 parent 9314898 commit dc7e184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/graph/validator/MatchValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ StatusOr<Expression *> MatchValidator::makeSubFilter(const std::string &alias,
pool,
LabelAttributeExpression::make(
pool, LabelExpression::make(pool, alias), ConstantExpression::make(pool, items[0].first)),
items[0].second->clone());
foldExpr->clone());
for (auto i = 1u; i < items.size(); i++) {
foldStatus = ExpressionUtils::foldConstantExpr(items[i].second);
NG_RETURN_IF_ERROR(foldStatus);
Expand All @@ -572,7 +572,7 @@ StatusOr<Expression *> MatchValidator::makeSubFilter(const std::string &alias,
LabelAttributeExpression::make(pool,
LabelExpression::make(pool, alias),
ConstantExpression::make(pool, items[i].first)),
items[i].second->clone());
foldExpr->clone());
root = LogicalExpression::makeAnd(pool, left, right);
}
return root;
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/match/Base.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Feature: Basic match
"""
Then the result should be, in any order, with relax comparison:
| v |
| ("Null1" :player{age: -1, name: __NULL__}) |
| ("Null1" :player{age: -1, name: NULL}) |
When executing query:
"""
match (v:player{age: +20}) return v
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/match/Base.feature
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ Feature: Basic match
"""
Then the result should be, in any order, with relax comparison:
| v |
| ("Null1" :player{age: -1, name: __NULL__}) |
| ("Null1" :player{age: -1, name: NULL}) |
When executing query:
"""
match (v:player{age: +20}) return v
Expand Down

0 comments on commit dc7e184

Please sign in to comment.