Skip to content

Commit 5284d8f

Browse files
committed
update tck
1 parent 9b98ce0 commit 5284d8f

File tree

2 files changed

+42
-11
lines changed

2 files changed

+42
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2021 vesoft inc. All rights reserved.
2+
#
3+
# This source code is licensed under Apache 2.0 License.
4+
Feature: Push Filter down InnerJoin rule
5+
6+
Background:
7+
Given a graph with space named "nba"
8+
9+
Scenario: push filter down InnerJoin
10+
When profiling query:
11+
"""
12+
LOOKUP ON player WHERE player.name == "Tony Parker"
13+
YIELD id(vertex) as id |
14+
GO FROM $-.id OVER like
15+
WHERE (like.likeness - 1) >= 0
16+
YIELD like._src AS src_id, like._dst AS dst_id, like.likeness AS likeness
17+
"""
18+
Then the result should be, in any order:
19+
| src_id | dst_id | likeness |
20+
| "Tony Parker" | "LaMarcus Aldridge" | 90 |
21+
| "Tony Parker" | "Manu Ginobili" | 95 |
22+
| "Tony Parker" | "Tim Duncan" | 95 |
23+
And the execution plan should be:
24+
| id | name | dependencies | operator info |
25+
| 10 | Project | 15 | |
26+
| 15 | InnerJoin | 17 | |
27+
| 17 | Project | 18 | |
28+
| 18 | GetNeighbors | 3 | |
29+
| 3 | Project | 11 | |
30+
| 11 | TagIndexPrefixScan | 0 | |
31+
| 0 | Start | | |

tests/tck/features/optimizer/PushFilterDownLeftJoinRule.feature

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ Feature: Push Filter down LeftJoin rule
2222
| "Tim Duncan" |
2323
And the execution plan should be:
2424
| id | name | dependencies | operator info |
25-
| 24 | Project | 23 | |
26-
| 23 | Filter | 22 | |
27-
| 22 | InnerJoin | 21 | |
25+
| 24 | Project | 34 | |
26+
| 34 | InnerJoin | 33 | |
27+
| 33 | Filter | 21 | |
2828
| 21 | LeftJoin | 20 | |
2929
| 20 | Project | 19 | |
3030
| 19 | GetVertices | 18 | |
31-
| 18 | Project | 31 | |
32-
| 31 | GetNeighbors | 14 | |
33-
| 14 | Project | 13 | |
34-
| 13 | Filter | 12 | |
35-
| 12 | InnerJoin | 11 | |
31+
| 18 | Project | 30 | |
32+
| 30 | GetNeighbors | 14 | |
33+
| 14 | Project | 32 | |
34+
| 32 | InnerJoin | 31 | |
35+
| 31 | Filter | 11 | |
3636
| 11 | LeftJoin | 10 | |
3737
| 10 | Project | 9 | |
3838
| 9 | GetVertices | 8 | |
39-
| 8 | Project | 30 | |
40-
| 30 | GetNeighbors | 27 | |
41-
| 27 | Project | 25 | |
39+
| 8 | Project | 29 | |
40+
| 29 | GetNeighbors | 26 | |
41+
| 26 | Project | 25 | |
4242
| 25 | TagIndexPrefixScan | 0 | |
4343
| 0 | Start | | |
4444
When profiling query:

0 commit comments

Comments
 (0)