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 can not filter by rank(e) #5123

Closed
nebula-bots opened this issue Dec 27, 2022 · 1 comment · Fixed by #5135
Closed

match can not filter by rank(e) #5123

nebula-bots opened this issue Dec 27, 2022 · 1 comment · Fixed by #5135
Assignees
Labels
affects/master PR/issue: this bug affects master version. auto-sync process/done Process of bug severity/blocker Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@nebula-bots
Copy link
Contributor

Please check the FAQ documentation before raising an issue
use rank(e)==2 in where statement, however return rank(e)=0;

 match ()-[e]->() where rank(e) == 2 return e limit 10

result is:

(root@nebula) [backup_sf100]> profile match ()-[e]->() where rank(e) == 2 return e limit 10
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| e                                                                                                                                                                             |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| [:IS_LOCATED_IN "c-10509641"->"l-1" @0 {}]                                                                                                                                    |
| [:COMMENT_HAS_CREATOR "c-10509641"->"p-41416" @0 {browserUsed: "Firefox", content: "thanks", creationDate: 2010-02-18T03:04:41.000000, length: 6, locationIP: "1.2.116.192"}] |
| [:REPLY_OF_COMMENT "c-10509641"->"c-10509627" @0 {}]                                                                                                                          |
| [:IS_LOCATED_IN "c-1051079"->"l-103" @0 {}]                                                                                                                                   |
| [:COMMENT_HAS_CREATOR "c-1051079"->"p-217287" @0 {browserUsed: "Firefox", content: "no", creationDate: 2010-02-19T20:22:43.000000, length: 2, locationIP: "27.112.114.114"}]  |
| [:REPLY_OF_POST "c-1051079"->"s-1051069" @0 {}]                                                                                                                               |
| [:IS_LOCATED_IN "c-10512839"->"l-0" @0 {}]                                                                                                                                    |
| [:COMMENT_HAS_CREATOR "c-10512839"->"p-16592" @0 {browserUsed: "Chrome", content: "thx", creationDate: 2010-02-27T05:36:54.000000, length: 3, locationIP: "49.249.123.82"}]   |
| [:REPLY_OF_COMMENT "c-10512839"->"c-10512837" @0 {}]                                                                                                                          |
| [:IS_LOCATED_IN "c-10514795"->"l-13" @0 {}]                                                                                                                                   |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Got 10 rows (time spent 5651/26492 us)

Your Environments (required)

nebula-ent,2022.12.22-nightly-ent
commit ID:8ac1a26

Expected behavior

return rank(e)==2's data

@nebula-bots nebula-bots added affects/master PR/issue: this bug affects master version. auto-sync severity/blocker Severity of bug type/bug Type: something is unexpected labels Dec 27, 2022
@xtcyclist xtcyclist self-assigned this Dec 27, 2022
@Sophie-Xie Sophie-Xie added this to the v3.4.0 milestone Dec 27, 2022
@xtcyclist
Copy link
Contributor

xtcyclist commented Dec 27, 2022

The evaluations of edge filters are wrong. Edge filters have not been correctly implemented at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/master PR/issue: this bug affects master version. auto-sync process/done Process of bug severity/blocker Severity of bug type/bug Type: something is unexpected
Projects
None yet
4 participants