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 edge sentence return two records when we do the follow nGQL #5367

Closed
Milittle opened this issue Feb 23, 2023 · 1 comment
Closed

Match edge sentence return two records when we do the follow nGQL #5367

Milittle opened this issue Feb 23, 2023 · 1 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

Comments

@Milittle
Copy link
Contributor

Please check the FAQ documentation before raising an issue

(root@nebula) [basketballplayer]> match ()-[e:FileRead]-() return e limit 10;
+------------------------------------------------------------------------------------------------------------------+
| e                                                                                                                |
+------------------------------------------------------------------------------------------------------------------+
| [:FileRead "100"->"101" @0 {event_startTs: 1677132344, file_uuid: "001", host_uuid: "001", process_uuid: "001"}] |
| [:FileRead "100"->"101" @0 {event_startTs: 1677132344, file_uuid: "001", host_uuid: "001", process_uuid: "001"}] |
+------------------------------------------------------------------------------------------------------------------+

Describe the bug (required)

double records for edge indexScan

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
    create one edge
  2. Step 2
    create edge index
  3. Step 3
    then insert one data

Expected behavior

return one records

@Milittle Milittle added the type/bug Type: something is unexpected label Feb 23, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Feb 23, 2023
@xtcyclist
Copy link
Contributor

This result is correct. The returned e is the shared edge from two different matched patterns. There are two different matched patterns since no conditions on vertices or the direction of edges have been specified in the query.

@github-actions github-actions bot added the process/fixed Process of bug label Feb 23, 2023
@HarrisChu HarrisChu added the process/done Process of bug label Feb 23, 2023
@github-actions github-actions bot removed the process/fixed Process of bug label Feb 23, 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

No branches or pull requests

3 participants