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

allShortestPaths fetch the wrong results #4979

Closed
yixinglu opened this issue Dec 3, 2022 · 1 comment · Fixed by #4956
Closed

allShortestPaths fetch the wrong results #4979

yixinglu opened this issue Dec 3, 2022 · 1 comment · Fixed by #4956
Assignees
Labels
affects/none PR/issue: this bug affects none version. process/done Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@yixinglu
Copy link
Contributor

yixinglu commented Dec 3, 2022

Please check the FAQ documentation before raising an issue

Describe the bug (required)

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:

(root@nebula) [nba]> match (a:player{name:'Tim Duncan'}), (b:player{name:'Tony Parker'}) with a as b, b as a match allShortestPaths( (a)-[:like*1..3]-(b)) return a, b;
+---+---+
| a | b |
+---+---+
+---+---+
Empty set (time spent 6.609ms/6.916724ms)

Sat, 03 Dec 2022 15:24:39 CST

(root@nebula) [nba]> match (a:player{name:'Tim Duncan'}), (b:player{name:'Tony Parker'}) match allShortestPaths( (a)-[:like*1..3]-(b)) return a, b;
+-------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| a                                                                                                           | b                                                     |
+-------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ("Tim Duncan" :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |
| ("Tim Duncan" :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |
+-------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
Got 2 rows (time spent 8.18ms/8.679055ms)

Sat, 03 Dec 2022 15:24:59 CST

(root@nebula) [nba]> match (a:player{name:'Tim Duncan'}), (b:player{name:'Tony Parker'}) with a as a, b as b match allShortestPaths( (a)-[:like*1..3]-(b)) return a, b;
+-------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| a                                                                                                           | b                                                     |
+-------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ("Tim Duncan" :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |
| ("Tim Duncan" :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |
+-------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
Got 2 rows (time spent 8.247ms/8.713112ms)

Expected behavior

above queries should return the same results.

Additional context

@yixinglu yixinglu added the type/bug Type: something is unexpected label Dec 3, 2022
@yixinglu yixinglu self-assigned this Dec 3, 2022
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Dec 3, 2022
@Sophie-Xie Sophie-Xie added this to the v3.4.0 milestone Dec 5, 2022
@github-actions github-actions bot added the process/fixed Process of bug label Dec 6, 2022
@HarrisChu
Copy link
Contributor

already add tck cases

@HarrisChu HarrisChu added the process/done Process of bug label Jan 9, 2023
@github-actions github-actions bot removed the process/fixed Process of bug label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/done Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants