Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Apr 3, 2023
1 parent 469abc6 commit 4ce04b6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
1 change: 0 additions & 1 deletion tests/tck/features/match/VariableLengthPattern.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
@jmq
Feature: Variable length Pattern match (m to n)

Background:
Expand Down
14 changes: 6 additions & 8 deletions tests/tck/features/optimizer/PrunePropertiesRule.feature
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ Feature: Prune Properties rule
| 14 | IndexScan | 2 | |
| 2 | Start | | |
| 11 | Project | 9 | |
| 9 | Traverse | 8 | { "vertexProps": "" } |
| 9 | Traverse | 8 | |
| 8 | Argument | | |

@distonly
Expand Down Expand Up @@ -446,9 +446,8 @@ Feature: Prune Properties rule
| 24 |
And the execution plan should be:
| id | name | dependencies | operator info |
| 7 | Aggregate | 6 | |
| 6 | Project | 5 | |
| 5 | AppendVertices | 4 | { "props": "[{\"props\":[\"age\"] }]" } |
| 7 | Aggregate | 8 | |
| 8 | AppendVertices | 4 | { "props": "[{\"props\":[\"age\"] }]" } |
| 4 | Traverse | 2 | {"vertexProps": "", "edgeProps": "[{ \"props\": [\"_type\", \"_rank\", \"_dst\"]}]" } |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
Expand All @@ -464,9 +463,8 @@ Feature: Prune Properties rule
| 24 |
And the execution plan should be:
| id | name | dependencies | operator info |
| 7 | Aggregate | 6 | |
| 6 | Project | 5 | |
| 5 | AppendVertices | 4 | { "props": "[{\"props\":[\"_tag\"] }, {\"props\":[\"_tag\"] }, {\"props\":[\"_tag\"] }]" } |
| 7 | Aggregate | 8 | |
| 8 | AppendVertices | 4 | { "props": "[{\"props\":[\"_tag\"] }, {\"props\":[\"_tag\"] }, {\"props\":[\"_tag\"] }]" } |
| 4 | Traverse | 2 | {"vertexProps": "" , "edgeProps": "[{ \"props\": [\"_type\", \"_rank\", \"_dst\"]}]" } |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
Expand Down Expand Up @@ -588,7 +586,7 @@ Feature: Prune Properties rule
| 1 | PassThrough | 3 | |
| 3 | Start | | |
| 26 | Project | 14 | |
| 14 | Traverse | 13 | {"vertexProps": "", "edgeProps": "[{ \"props\": [\"_src\", \"_type\", \"_rank\", \"_dst\", \"start_year\", \"end_year\"]}]" } |
| 14 | Traverse | 13 | {"edgeProps": "[{ \"props\": [\"_src\", \"_type\", \"_rank\", \"_dst\", \"start_year\", \"end_year\"]}]" } |
| 13 | Traverse | 12 | {"vertexProps": "", "edgeProps": "[{ \"props\": [\"_type\", \"_rank\", \"_dst\"]}]" } |
| 12 | Traverse | 11 | {"vertexProps": "", "edgeProps": "[{ \"props\": [\"_type\", \"_rank\", \"_dst\"]}, { \"props\": [\"_type\", \"_rank\", \"_dst\"]}]" } |
| 11 | Argument | | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Feature: Remove AppendVertices Below Join
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |
| 15 | Project | 14 | {"columns": ["$-.friend AS friend", "$-.friend2 AS friend2", "none_direct_dst($-.__VAR_3) AS friendTeam"]} |
| 15 | Project | 14 | {"columns": ["$-.friend AS friend", "$-.friend2 AS friend2", "none_direct_dst($-.__VAR_3,$-.friend2) AS friendTeam"]} |
| 14 | Traverse | 12 | |
| 12 | Traverse | 11 | |
| 11 | Argument | | |
Expand All @@ -76,16 +76,16 @@ Feature: Remove AppendVertices Below Join
| me | both | he |
| ("Tony Parker") | ("Manu Ginobili") | ("Tim Duncan") |
And the execution plan should be:
| id | name | dependencies | operator info |
| 13 | HashInnerJoin | 6,12 | {"hashKeys": ["_joinkey($-.both)"], "probeKeys": ["$-.both"]} |
| 6 | Project | 5 | |
| 5 | AppendVertices | 15 | |
| 15 | Traverse | 2 | |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |
| 12 | Project | 16 | {"columns": ["$-.he AS he", "none_direct_dst($-.__VAR_1) AS both"]} |
| 16 | Traverse | 8 | |
| 8 | Dedup | 7 | |
| 7 | PassThrough | 9 | |
| 9 | Start | | |
| id | name | dependencies | operator info |
| 13 | HashInnerJoin | 6,12 | {"hashKeys": ["_joinkey($-.both)"], "probeKeys": ["$-.both"]} |
| 6 | Project | 5 | |
| 5 | AppendVertices | 15 | |
| 15 | Traverse | 2 | |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |
| 12 | Project | 16 | {"columns": ["$-.he AS he", "none_direct_dst($-.__VAR_1,$-.he) AS both"]} |
| 16 | Traverse | 8 | |
| 8 | Dedup | 7 | |
| 7 | PassThrough | 9 | |
| 9 | Start | | |

0 comments on commit 4ce04b6

Please sign in to comment.