-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter out previous path which do not met the conditions (#5159)
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
- Loading branch information
1 parent
ffaa254
commit 5aa2388
Showing
2 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright (c) 2022 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
Feature: match node label filter | ||
|
||
Background: | ||
Given a graph with space named "nba" | ||
|
||
Scenario: node label filter | ||
When executing query: | ||
""" | ||
MATCH (v0)<-[e0:like]-(v1:bachelor)-[e1*2]->() | ||
WHERE id(v0) in ['Tony Parker', 'Spurs', 'Yao Ming'] | ||
return type(e0), labels(v1) | ||
""" | ||
Then the result should be, in any order: | ||
| type(e0) | labels(v1) | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
| "like" | ["bachelor", "player"] | | ||
When executing query: | ||
""" | ||
MATCH (v0)<-[e0:like]-(v1:bachelor)-[e1*0..2]->() | ||
WHERE id(v0) in ['Tony Parker', 'Spurs', 'Yao Ming'] | ||
return labels(v1), count(*) | ||
""" | ||
Then the result should be, in any order: | ||
| labels(v1) | count(*) | | ||
| ["bachelor", "player"] | 34 | |