Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Jul 21, 2021
1 parent 42d1241 commit 6bf7e98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/validator/LookupValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ StatusOr<Expression*> LookupValidator::handleLogicalExprOperands(LogicalExpressi
}

StatusOr<Expression*> LookupValidator::checkFilter(Expression* expr) {
// TODO: Support IN expression push down
if (expr->isRelExpr()) {
auto relExpr = static_cast<RelationalExpression*>(expr);
NG_RETURN_IF_ERROR(checkRelExpr(relExpr));
Expand Down
19 changes: 9 additions & 10 deletions tests/tck/features/lookup/TagIndexFullScan.feature
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Feature: Lookup tag index full scan
| 4 | TagIndexFullScan | 0 | |
| 0 | Start | | |

# TODO: Support compare operator info that has multiple column hints
Scenario: Tag with relational IN/NOT IN filter
When profiling query:
"""
Expand All @@ -103,11 +104,10 @@ Feature: Lookup tag index full scan
| "Jazz" |
| "Hornets" |
And the execution plan should be:
| id | name | dependencies | operator info |
| 3 | Project | 2 | |
| 2 | Filter | 4 | {"condition": "(team.name IN [\"Hornets\",\"Jazz\"])"} |
| 4 | TagIndexFullScan | 0 | |
| 0 | Start | | |
| id | name | dependencies | operator info |
| 3 | Project | 4 | |
| 4 | IndexScan | 0 | |
| 0 | Start | | |
When executing query:
"""
LOOKUP ON team WHERE team.name IN ["non-existed-name"]
Expand All @@ -125,11 +125,10 @@ Feature: Lookup tag index full scan
| "Tony Parker" | 36 |
| "Boris Diaw" | 36 |
And the execution plan should be:
| id | name | dependencies | operator info |
| 3 | Project | 2 | |
| 2 | Filter | 4 | {"condition": "(player.age IN [39,36])"} |
| 4 | TagIndexFullScan | 0 | |
| 0 | Start | | |
| id | name | dependencies | operator info |
| 3 | Project | 4 | |
| 4 | IndexScan | 0 | |
| 0 | Start | | |
When profiling query:
"""
LOOKUP ON team WHERE team.name NOT IN ["Hornets", "Jazz"]
Expand Down

0 comments on commit 6bf7e98

Please sign in to comment.