Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix match index #3694

Merged
merged 9 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions tests/tck/features/match/SeekById.feature
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,28 @@ Feature: Match seek by id
"""
Then the result should be, in any order:
| v |
When executing query:
nevermore3 marked this conversation as resolved.
Show resolved Hide resolved
"""
MATCH (v:player)
WHERE "Tim Duncan" == v.player.name
OR 23 + 1 == v.noexist.age - 3
RETURN v
"""
Then the result should be, in any order:
| v |
| ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) |
When executing query:
"""
MATCH (v:player)-[e:like]->(t)
WHERE "Tim Duncan" == v.player.name
OR 25 - 2 == v.player.age
RETURN t
"""
Then the result should be, in any order:
| t |
| ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |
| ("Luka Doncic" :player{age: 20, name: "Luka Doncic"}) |
| ("Manu Ginobili" :player{age: 41, name: "Manu Ginobili"}) |

Scenario: Start from end
When executing query:
Expand Down
10 changes: 10 additions & 0 deletions tests/tck/features/match/SeekById.intVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,16 @@ Feature: Match seek by id
"""
Then the result should be, in any order:
| v |
When executing query:
"""
MATCH (v:player)
WHERE "Tim Duncan" == v.player.name
OR 23 + 1 == v.noexist.age - 3
RETURN v.name as name
"""
Then the result should be, in any order:
| name |
| "Tim Duncan" |

Scenario: with arithmetic
When executing query:
Expand Down