Skip to content

Commit

Permalink
Test edge property of double and geography types
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Jan 6, 2023
1 parent 2786fbb commit a71497c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 58 deletions.
4 changes: 3 additions & 1 deletion tests/data/ngdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ schema: |-
CREATE TAG INDEX Label_5_index ON Label_5 (Label_5_8_Int);
CREATE TAG INDEX Label_8_index ON Label_8 (Label_8_2_Double, Label_8_0_Bool, Label_8_4_String(64), Label_8_7_String(64), Label_8_5_date, Label_8_1_Bool, Label_8_3_Bool, Label_8_6_timestamp);
CREATE TAG INDEX Label_11_index ON Label_11 (Label_11_5_Double);
CREATE EDGE INDEX Rel_5_index ON Rel_5 (Rel_5_1_Bool, Rel_5_6_Int, Rel_5_2_String(64))
CREATE EDGE INDEX Rel_5_index ON Rel_5 (Rel_5_1_Bool, Rel_5_6_Int, Rel_5_2_String(64));
CREATE EDGE INDEX Rel_0_index ON Rel_0 (Rel_0_3_Double);
CREATE EDGE INDEX Rel_3_index ON Rel_3 (Rel_3_1_geography_point);
files:
- path: Label_0.csv
withHeader: true
Expand Down
86 changes: 29 additions & 57 deletions tests/tck/features/lookup/LookupNGDataTest.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Test lookup on ngdata data
"""
LOOKUP ON Label_11 WHERE Label_11.Label_11_5_Double>0 YIELD id(vertex) AS vid
"""
Then the result should be, in any order:
Then the result should contain:
| vid |
| 88 |
| 11 |
Expand All @@ -22,65 +22,37 @@ Feature: Test lookup on ngdata data
| 79 |
| 83 |
| 383 |
| 60 |
| 75 |
| 22 |
| 108 |
| 39 |
| 68 |
| 89 |
| 12 |
| 2 |
| 33 |
| 28 |
| 41 |
| 59 |
| 16 |
| 105 |
| 71 |
| 56 |
| 31 |
| 103 |
| 4 |
| 92 |
| 24 |
| 21 |
| 107 |
| 10 |
| 82 |
| 63 |
| 7 |
| 52 |
| 99 |
| 6 |
| 85 |
| 14 |
| 74 |
| 30 |
| 26 |
| 50 |
| 38 |
| 47 |
| 3 |
| 36 |
| 96 |
| 78 |
| 80 |
| 25 |
| 97 |
| 81 |
| 15 |
| 27 |
| 98 |
| 102 |
| 101 |
| 70 |
| 1 |
| 77 |
| 53 |
When executing query:
"""
LOOKUP ON Label_11 WHERE Label_11.Label_11_5_Double>10 YIELD id(vertex) AS vid
"""
Then the result should be, in any order:
| vid |

Scenario: lookup on the edge property of double type
When executing query:
"""
LOOKUP ON Rel_0 WHERE Rel_0.Rel_0_3_Double>0 YIELD id(edge) AS eid
"""
Then the result should be, in any order:
| eid |
When executing query:
"""
LOOKUP ON Rel_0 WHERE Rel_0.Rel_0_3_Double>10 YIELD id(edge) AS eid
"""
Then the result should be, in any order:
| eid |

Scenario: lookup on the edge property of geography type
When executing query:
"""
LOOKUP ON Rel_3 WHERE Rel_3.Rel_3_1_geography_point>0 YIELD id(edge) AS eid
"""
Then the result should be, in any order:
| eid |
When executing query:
"""
LOOKUP ON Rel_3 WHERE Rel_3.Rel_3_1_geography_point>10 YIELD id(edge) AS eid
"""
Then the result should be, in any order:
| eid |

0 comments on commit a71497c

Please sign in to comment.