Skip to content

Commit

Permalink
fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Dec 29, 2022
1 parent 7e6b621 commit b531b64
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions tests/tck/features/optimizer/CasesUsingTestSpace.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@ Feature: Push Filter Down Cases Using the test Space
Given load "test" csv data to a new space

Scenario: push filter down hash join bug fix
When profiling query:
"""
MATCH (v1:Label_6:Label_3)<-[e2:Rel_1]-(:Label_5)-[e3]->(v2)
WHERE (id(v1) in [20, 28, 31, 6, 4, 18, 15, 25, 9, 19, 21])
MATCH p0 = (v2)<-[e4]-()-[e5]->(v3:Label_6)
WITH min(v3.Label_6.Label_6_4_Int) AS pa0,
v3.Label_6.Label_6_1_Bool AS pa2
WHERE pa2
RETURN pa2
"""
Then the result should be, in any order:
| pa2 |
| true |
And the execution plan should be:
| id | name | dependencies | operator info |
| 17 | project | 19 | |
| 19 | aggregate | 24 | |
| 24 | HashInnerJoin | 21,29 | |
| 21 | project | 20 | |
| 20 | filter | 6 | |
| 6 | AppendVertices | 26 | |
| 26 | Traverse | 25 | |
| 25 | Traverse | 2 | |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |
| 29 | project | 28 | |
| 28 | Filter | 27 | {"condition": "$-.v3.Label_6.Label_6_1_Bool"} |
| 27 | AppendVertices | 11 | |
| 11 | Traverse | 10 | |
| 10 | Traverse | 9 | |
| 9 | Argument | | |
When profiling query:
"""
MATCH (v1:Label_6:Label_3)<-[e2:Rel_1]-(:Label_5)-[e3]->(v2)
WHERE (id(v1) in [20, 28, 31, 6, 4, 18, 15, 25, 9, 19, 21])
MATCH p0 = (v2)<-[e4]-()-[e5]->(v3:Label_6)
WITH min(v3.Label_6.Label_6_4_Int) AS pa0,
v3.Label_6.Label_6_1_Bool AS pa2
WHERE pa2
RETURN pa2
"""
Then the result should be, in any order:
| pa2 |
| true |
And the execution plan should be:
| id | name | dependencies | operator info |
| 17 | project | 19 | |
| 19 | aggregate | 24 | |
| 24 | HashInnerJoin | 21,29 | |
| 21 | project | 20 | |
| 20 | filter | 6 | |
| 6 | AppendVertices | 26 | |
| 26 | Traverse | 25 | |
| 25 | Traverse | 2 | |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |
| 29 | project | 28 | |
| 28 | Filter | 27 | {"condition": "$-.v3.Label_6.Label_6_1_Bool"} |
| 27 | AppendVertices | 11 | |
| 11 | Traverse | 10 | |
| 10 | Traverse | 9 | |
| 9 | Argument | | |

0 comments on commit b531b64

Please sign in to comment.