-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
More lookup TCK tests #5218
Merged
Merged
More lookup TCK tests #5218
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d1cd877
More lookup tests on ngdata
yixinglu 2dc7b71
Test edge property of double and geography types
yixinglu 1ac5900
Restore geography test for lookup
yixinglu ab1e224
comment back tests
yixinglu 19f11ff
More lookup test cases
yixinglu 23a4e68
restore ngdata tests
yixinglu b41d515
drop the used space
yixinglu 76ccc74
Fix failed
yixinglu d84780d
refine step
yixinglu 5efef91
some variables in where clause of lookup statement
yixinglu 8cb94c9
some variabes in yield clause of lookup statement
yixinglu 5f8a793
More yield variable test
yixinglu 7c7bf6e
Merge branch 'master' into lookup-test
yixinglu d492800
Merge branch 'master' into lookup-test
Sophie-Xie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,55 @@ Feature: Push Limit down IndexScan Rule | |
| 7 | Limit | 8 | | | ||
| 8 | EdgeIndexPrefixScan | 9 | {"limit": "3"} | | ||
| 9 | Start | | | | ||
|
||
Scenario: some variables in where clause of lookup statement | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add some test cases related to cypher variable:
|
||
When executing query: | ||
""" | ||
$var = YIELD true; | ||
LOOKUP ON player WHERE $var==true YIELD id(vertex) as id; | ||
""" | ||
Then a SemanticError should be raised at runtime: Expression ($var==true) not supported yet | ||
When executing query: | ||
""" | ||
$var = YIELD true; | ||
LOOKUP ON player WHERE player.name=='Tim Duncan' AND $var==true YIELD id(vertex) as id; | ||
""" | ||
Then a SemanticError should be raised at runtime: Expression ($var==true) not supported yet | ||
When executing query: | ||
""" | ||
YIELD 'Tim Duncan' AS player_name | | ||
LOOKUP ON player WHERE player.name==$-.player_name YIELD id(vertex) as id; | ||
""" | ||
Then a SemanticError should be raised at runtime: '$-.player_name' is not an evaluable expression | ||
When executing query: | ||
""" | ||
YIELD 'Tim Duncan' AS player_name | | ||
LOOKUP ON player WHERE player.name IN [$-.player_name, 'Tony Parker'] YIELD id(vertex) as id; | ||
""" | ||
Then a SemanticError should be raised at runtime: '[$-.player_name,"Tony Parker"]' is not an evaluable expression | ||
When executing query: | ||
""" | ||
YIELD 'Tim Duncan' AS player_name | | ||
LOOKUP ON player WHERE player.name==player_name YIELD id(vertex) as id; | ||
""" | ||
Then a SemanticError should be raised at runtime: 'player_name' is not an evaluable expression | ||
|
||
Scenario: some variables in yield clause of lookup statement | ||
When executing query: | ||
""" | ||
$var = YIELD true; | ||
LOOKUP ON player WHERE player.name=='Tim Duncan' YIELD id(vertex) as id, $var AS v; | ||
""" | ||
Then a SyntaxError should be raised at runtime: Direct output of variable is prohibited near `$var' | ||
When executing query: | ||
""" | ||
YIELD 'Tim Duncan' AS player_name | | ||
LOOKUP ON player WHERE player.name=='Tim Duncan' YIELD id(vertex) as id, $-.player_name AS pn; | ||
""" | ||
Then a SemanticError should be raised at runtime: unsupported input/variable property expression in yield | ||
When executing query: | ||
""" | ||
YIELD 'Tim Duncan' AS player_name | | ||
LOOKUP ON player WHERE player.name=='Tim Duncan' YIELD id(vertex) as id, player_name AS pn; | ||
""" | ||
Then a SemanticError should be raised at runtime: Invalid label identifiers: player_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YIELD
weight.WEIGHT
for more intuitive validation. Any issue related to float precision here?