Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210360228
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210360228
Commits
761843fa
Unverified
Commit
761843fa
authored
4 years ago
by
Shylock Hg
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add the int vid cases for match seek by tag (#570)
Co-authored-by:
cpw
<
13495049+CPWstatic@users.noreply.github.com
>
parent
d03de308
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/tck/features/match/SeekByTag.intVid.feature
+113
-0
113 additions, 0 deletions
tests/tck/features/match/SeekByTag.intVid.feature
with
113 additions
and
0 deletions
tests/tck/features/match/SeekByTag.intVid.feature
0 → 100644
+
113
−
0
View file @
761843fa
Feature
:
Match seek by tag
Background
:
Prepare space
Given
a graph with space named
"nba_int_vid"
Scenario
:
seek by empty tag index
When executing query
:
"""
MATCH (v:bachelor)
RETURN id(v) AS vid
"""
Then the result should be, in any order
:
|
vid
|
|
hash('Tim
Duncan')
|
And
no side effects
When executing query
:
"""
MATCH (v:bachelor)
RETURN id(v) AS vid, v.age AS age
"""
Then the result should be, in any order
:
|
vid
|
age
|
|
hash('Tim
Duncan')
|
42
|
And
no side effects
Scenario
:
seek by tag index
When executing query
:
"""
MATCH (v:team)
RETURN id(v)
"""
Then the result should be, in any order
:
|
id(v)
|
|
hash('Nets')
|
|
hash('Pistons')
|
|
hash('Bucks')
|
|
hash('Mavericks')
|
|
hash('Clippers')
|
|
hash('Thunders')
|
|
hash('Lakers')
|
|
hash('Jazz')
|
|
hash('Nuggets')
|
|
hash('Wizards')
|
|
hash('Pacers')
|
|
hash('Timberwolves')
|
|
hash('Hawks')
|
|
hash('Warriors')
|
|
hash('Magic')
|
|
hash('Rockets')
|
|
hash('Pelicans')
|
|
hash('Raptors')
|
|
hash('Spurs')
|
|
hash('Heat')
|
|
hash('Grizzlies')
|
|
hash('Knicks')
|
|
hash('Suns')
|
|
hash('Hornets')
|
|
hash('Cavaliers')
|
|
hash('Kings')
|
|
hash('Celtics')
|
|
hash('76ers')
|
|
hash('Trail
Blazers')
|
|
hash('Bulls')
|
And
no side effects
When executing query
:
"""
MATCH (v:team)
RETURN id(v) AS vid, v.name AS name
"""
Then the result should be, in any order
:
|
vid
|
name
|
|
hash('Nets')
|
'Nets'
|
|
hash('Pistons')
|
'Pistons'
|
|
hash('Bucks')
|
'Bucks'
|
|
hash('Mavericks')
|
'Mavericks'
|
|
hash('Clippers')
|
'Clippers'
|
|
hash('Thunders')
|
'Thunders'
|
|
hash('Lakers')
|
'Lakers'
|
|
hash('Jazz')
|
'Jazz'
|
|
hash('Nuggets')
|
'Nuggets'
|
|
hash('Wizards')
|
'Wizards'
|
|
hash('Pacers')
|
'Pacers'
|
|
hash('Timberwolves')
|
'Timberwolves'
|
|
hash('Hawks')
|
'Hawks'
|
|
hash('Warriors')
|
'Warriors'
|
|
hash('Magic')
|
'Magic'
|
|
hash('Rockets')
|
'Rockets'
|
|
hash('Pelicans')
|
'Pelicans'
|
|
hash('Raptors')
|
'Raptors'
|
|
hash('Spurs')
|
'Spurs'
|
|
hash('Heat')
|
'Heat'
|
|
hash('Grizzlies')
|
'Grizzlies'
|
|
hash('Knicks')
|
'Knicks'
|
|
hash('Suns')
|
'Suns'
|
|
hash('Hornets')
|
'Hornets'
|
|
hash('Cavaliers')
|
'Cavaliers'
|
|
hash('Kings')
|
'Kings'
|
|
hash('Celtics')
|
'Celtics'
|
|
hash('76ers')
|
'76ers'
|
|
hash('Trail
Blazers')
|
'Trail
Blazers'
|
|
hash('Bulls')
|
'Bulls'
|
And
no side effects
Scenario
:
seek by tag index with extend
When executing query
:
"""
MATCH (p:bachelor)-[:serve]->(t)
RETURN t.name AS team
"""
Then the result should be, in any order
:
|
team
|
|
'Spurs'
|
And
no side effects
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment