Skip to content
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

match pattern in where clause return incorrect result #4714

Closed
xiajingchun opened this issue Oct 11, 2022 · 1 comment · Fixed by #4778
Closed

match pattern in where clause return incorrect result #4714

xiajingchun opened this issue Oct 11, 2022 · 1 comment · Fixed by #4778
Assignees
Labels
severity/major Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@xiajingchun
Copy link

Use the basketballplayer schema, run below query didn't produce expected result. The expectation is to return only v2 without followers.

(root@nebula) [basketballplayer]> profile match (v)<-[:follow]-(v2) where id(v)=="player100" AND NOT (v2)<-[:follow]-() return v2;
+-----------------------------------------------------------+
| v2                                                        |
+-----------------------------------------------------------+
| ("player105" :player{age: 31, name: "Danny Green"})       |
| ("player109" :player{age: 34, name: "Tiago Splitter"})    |
| ("player104" :player{age: 32, name: "Marco Belinelli"})   |
| ("player113" :player{age: 29, name: "Dejounte Murray"})   |
| ("player107" :player{age: 32, name: "Aron Baynes"})       |
| ("player102" :player{age: 33, name: "LaMarcus Aldridge"}) |
| ("player144" :player{age: 47, name: "Shaquille O'Neal"})  |
| ("player108" :player{age: 36, name: "Boris Diaw"})        |
| ("player125" :player{age: 41, name: "Manu Ginobili"})     |
| ("player101" :player{age: 36, name: "Tony Parker"})       |
+-----------------------------------------------------------+

The execution plan
image

Your Environments (required)

  • OS: uname -a
  • Compiler: g++ --version or clang++ --version
  • CPU: lscpu
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

@jinyingsunny
Copy link

checked on 3.3-rc
checked on 3.3-ent-rc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants