-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to filter on path pattern #4760
Labels
Milestone
Comments
besides, filter by path pattern will make size(pattern) behave abnormaly, when the path patern filter exists, the size((v)-->()) return a BAD_TYPE error, (root@nebula) [nba]> match p = (v)-[e]->(t) where id(v) == "Tim Duncan" and not (v)-[e]->(t:team) return v, size((v)-->()), (v)-->()
+---+---------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
| v | size((v)-->() = (v)-->()) | (v)-->() = (v)-->() |
+---+---------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
| | BAD_TYPE | ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) |
| | BAD_TYPE | ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) |
| | BAD_TYPE | ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) |
| | BAD_TYPE | ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) |
| | BAD_TYPE | ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) |
| | BAD_TYPE | ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) |
+---+---------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
Got 6 rows (time spent 3062/3497 us)
Thu, 20 Oct 2022 15:54:21 CST
(root@nebula) [nba]> when we delete the path pater filte in the where clause, the result is correct: (root@nebula) [nba]> match p = (v)-[e]->(t) where id(v) == "Tim Duncan" return v, t, size((v)-->())
+--------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
| v | t | size((v)-->() = (v)-->()) |
+--------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Spurs" :team{name: "Spurs"}) | 7 |
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("LaMarcus Aldridge" :player{age: 33, name: "LaMarcus Aldridge"}) | 7 |
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) | 7 |
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) | 7 |
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Danny Green" :player{age: 31, name: "Danny Green"}) | 7 |
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Manu Ginobili" :player{age: 41, name: "Manu Ginobili"}) | 7 |
| ("Tim Duncan" :t1{name: "hello world"} :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Manu Ginobili" :player{age: 41, name: "Manu Ginobili"}) | 7 |
+--------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+---------------------------+
Got 7 rows (time spent 2828/3397 us)
Thu, 20 Oct 2022 15:52:13 CST |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please check the FAQ documentation before raising an issue
Describe the bug (required)
Perhaps a similar problem to #4714 , what we want is to filter out the end vertex with tag
player
of an edge :match p = (v)-[e]->(t) where id(v) == "Tim Duncan" and not (v)-[]->(t:player) return t
did not work as expected:while this clause work as expected
match p = (v)-[e]->(t) where id(v) == "Tim Duncan" and not (v)-[e]->(t:player) return t
Your Environments (required)
uname -a
g++ --version
orclang++ --version
lscpu
a3ffc7d8
)How To Reproduce(required)
Steps to reproduce the behavior:
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: