Skip to content

Commit

Permalink
Skip some tck cases related ngdata
Browse files Browse the repository at this point in the history
  • Loading branch information
czpmango committed Jan 11, 2023
1 parent feccffb commit 21bfc49
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 11 deletions.
112 changes: 102 additions & 10 deletions tests/tck/features/match/Base.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -545,31 +545,123 @@ Feature: Basic match
Scenario: can't get property of vertex
When executing query:
"""
MATCH (v:player{name:"Tim Duncan"}) return v.name
MATCH (v:player{name:"Tim Duncan"}) RETURN v.name AS vname
"""
Then a SemanticError should be raised at runtime: To get the property of the vertex in `v.name', should use the format `var.tag.prop'
Then the result should be, in any order:
| vname |
| NULL |
When executing query:
"""
MATCH (v:player{name:"Tim Duncan"}) RETURN v.player AS vtag
"""
Then the result should be, in any order:
| vtag |
| {name:"Tim Duncan"} |
When executing query:
"""
MATCH (v:player)-[]->(b) WHERE v.age > 30 return v.player.name
MATCH (v:player)-[]->(b) WHERE v.age > 30 RETURN v.player.name AS vname
"""
Then a SemanticError should be raised at runtime: To get the property of the vertex in `v.age', should use the format `var.tag.prop'
Then the result should be, in any order:
| vname |
When executing query:
"""
MATCH (v:player)-[:like]->(b) WHERE v.player.age > 30 return v.player.name, b.age
MATCH (v:player)-[:like]->(b) WHERE v.player.age > 30 WITH v.player.name AS vname, b.age AS bage RETURN vname, bage
"""
Then a SemanticError should be raised at runtime: To get the property of the vertex in `b.age', should use the format `var.tag.prop'
Then the result should be, in any order:
| vname | bage |
| "Rajon Rondo" | NULL |
| "Manu Ginobili" | NULL |
| "Tracy McGrady" | NULL |
| "Tracy McGrady" | NULL |
| "Tracy McGrady" | NULL |
| "Tim Duncan" | NULL |
| "Tim Duncan" | NULL |
| "Chris Paul" | NULL |
| "Chris Paul" | NULL |
| "Chris Paul" | NULL |
| "Rudy Gay" | NULL |
| "Paul Gasol" | NULL |
| "Paul Gasol" | NULL |
| "Boris Diaw" | NULL |
| "Boris Diaw" | NULL |
| "Aron Baynes" | NULL |
| "Carmelo Anthony" | NULL |
| "Carmelo Anthony" | NULL |
| "Carmelo Anthony" | NULL |
| "Danny Green" | NULL |
| "Danny Green" | NULL |
| "Danny Green" | NULL |
| "Vince Carter" | NULL |
| "Vince Carter" | NULL |
| "Jason Kidd" | NULL |
| "Jason Kidd" | NULL |
| "Jason Kidd" | NULL |
| "Marc Gasol" | NULL |
| "Grant Hill" | NULL |
| "Steve Nash" | NULL |
| "Steve Nash" | NULL |
| "Steve Nash" | NULL |
| "Steve Nash" | NULL |
| "Tony Parker" | NULL |
| "Tony Parker" | NULL |
| "Tony Parker" | NULL |
| "Marco Belinelli" | NULL |
| "Marco Belinelli" | NULL |
| "Marco Belinelli" | NULL |
| "Yao Ming" | NULL |
| "Yao Ming" | NULL |
| "Dirk Nowitzki" | NULL |
| "Dirk Nowitzki" | NULL |
| "Dirk Nowitzki" | NULL |
| "Shaquille O'Neal" | NULL |
| "Shaquille O'Neal" | NULL |
| "LaMarcus Aldridge" | NULL |
| "LaMarcus Aldridge" | NULL |
| "Tiago Splitter" | NULL |
| "Tiago Splitter" | NULL |
| "Ray Allen" | NULL |
| "LeBron James" | NULL |
| "Amar'e Stoudemire" | NULL |
| "Dwyane Wade" | NULL |
| "Dwyane Wade" | NULL |
| "Dwyane Wade" | NULL |
When executing query:
"""
MATCH (:player{name:"Tony Parker"})-[r]->(m) where exists(m.age) RETURN r
"""
Then the result should be, in any order:
| r |
When executing query:
"""
MATCH (:player{name:"Tony Parker"})-[r]->(m) where exists(m.age) return r
MATCH (:player{name:"Tony Parker"})-[r]->(m) where exists(m.player.age) RETURN r
"""
Then a SemanticError should be raised at runtime: To get the property of the vertex in `m.age', should use the format `var.tag.prop'
Then the result should be, in any order, with relax comparison:
| r |
| [:teammate "Tony Parker"->"Kyle Anderson" @0 {end_year: 2016, start_year: 2014}] |
| [:teammate "Tony Parker"->"LaMarcus Aldridge" @0 {end_year: 2018, start_year: 2015}] |
| [:teammate "Tony Parker"->"Manu Ginobili" @0 {end_year: 2018, start_year: 2002}] |
| [:teammate "Tony Parker"->"Tim Duncan" @0 {end_year: 2016, start_year: 2001}] |
| [:like "Tony Parker"->"Tim Duncan" @0 {likeness: 95}] |
| [:like "Tony Parker"->"Manu Ginobili" @0 {likeness: 95}] |
| [:like "Tony Parker"->"LaMarcus Aldridge" @0 {likeness: 90}] |
When executing query:
"""
MATCH (v :player{name:"Tim Duncan"})-[]-(v2)-[]-(v3)
WITH v3.name as names
RETURN count(names)
RETURN count(names) AS c
"""
Then the result should be, in any order:
| c |
| 0 |
When executing query:
"""
MATCH (v:player{name:"Tim Duncan"})-[]-(v2)-[]-(v3)
WITH v3.player.name as names
RETURN count(distinct names) AS c
"""
Then a SemanticError should be raised at runtime: To get the property of the vertex in `v3.name', should use the format `var.tag.prop'
Then the result should be, in any order:
| c |
| 25 |

Scenario: filter is not a valid expression
When executing query:
Expand Down
8 changes: 8 additions & 0 deletions tests/tck/features/match/Path.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Feature: Matching paths
| count(p) | count(p2) |
| 966 | 966 |

# The correctness of the following test cases needs to be verified, mark it @skip for now
@skip
Scenario: overlapping aliases variables
When executing query:
"""
Expand Down Expand Up @@ -323,6 +325,8 @@ Feature: Matching paths
| 1 | 1 | 1 | 96 |
| 3 | 3 | 3 | 99 |

# The correctness of the following test cases needs to be verified, mark it @skip for now
@skip
Scenario: symmetry paths
When executing query:
"""
Expand Down Expand Up @@ -360,6 +364,8 @@ Feature: Matching paths
| 2 |
| 2 |

# The correctness of the following test cases needs to be verified, mark it @skip for now
@skip
Scenario: src dst variables in paths
When executing query:
"""
Expand Down Expand Up @@ -404,6 +410,8 @@ Feature: Matching paths
| count(*) |
| 190 |

# The correctness of the following test cases needs to be verified, mark it @skip for now
@skip
Scenario: edgelist or single edge in paths
When executing query:
"""
Expand Down
5 changes: 4 additions & 1 deletion tests/tck/features/match/With.feature
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ Feature: With clause
WITH dst AS b
RETURN b.age AS age, b
"""
Then a SemanticError should be raised at runtime: To get the property of the vertex in `b.age', should use the format `var.tag.prop'
Then the result should be, in any order, with relax comparison:
| age | b |
| NULL | ("Manu Ginobili" :player{age: 41, name: "Manu Ginobili"}) |
| NULL | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |

@skip
Scenario: with match return
Expand Down

0 comments on commit 21bfc49

Please sign in to comment.