Skip to content

Commit

Permalink
add tck.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Mar 22, 2023
1 parent df35a82 commit aa975ad
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions tests/tck/features/optimizer/PushFilterDownBugFixes.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright (c) 2023 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
Feature: Bug fixes on filter push-down

Background:
Given a graph with space named "ngdata"

Scenario: missing predicate bug
When profiling query:
"""
MATCH (v0)<-[e0]-()<-[e1]-(v1)
WHERE (id(v0) == 6)
AND ((NOT (NOT ((v1.Label_6.Label_6_5_Int > (e1.Rel_0_5_Int - 0.300177))
AND v1.Label_6.Label_6_1_Bool))))
RETURN count(*)
"""
Then the result should be, in any order:
| count(*) |
| 0 |
And the execution plan should be:
| id | name | dependencies | operator info |
| 9 | Aggregate | 11 | |
| 11 | Project | 10 | |
| 10 | Filter | 6 | |
| 6 | AppendVertices | 5 | |
| 5 | Traverse | 4 | |
| 4 | Traverse | 2 | |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |
When profiling query:
"""
MATCH (v0)<-[e0]-()<-[e1]-(v1)
WHERE id(v0) == 6
AND v1.Label_6.Label_6_1_Bool
RETURN count(*)
"""
Then the result should be, in any order:
| count(*) |
| 126 |
And the execution plan should be:
| id | name | dependencies | operator info |
| 9 | Aggregate | 11 | |
| 11 | Project | 10 | |
| 10 | Filter | 6 | |
| 6 | AppendVertices | 5 | |
| 5 | Traverse | 4 | |
| 4 | Traverse | 2 | |
| 2 | Dedup | 1 | |
| 1 | PassThrough | 3 | |
| 3 | Start | | |

0 comments on commit aa975ad

Please sign in to comment.