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 Search, The order of results is inconsistent with the order of Return #4049

Closed
jianan0982 opened this issue Mar 17, 2022 · 6 comments
Closed
Assignees
Labels
community Source: who proposed the issue type/bug Type: something is unexpected
Milestone

Comments

@jianan0982
Copy link

jianan0982 commented Mar 17, 2022

Describe the bug (required)
Nebula-Graph Version: 2.5

Rebuild

  • Command
    MATCH p=(v:owl_Class{name:"畜肉类"})<-[e1]-(v2:owl_NamedIndividual)-[e2:relation{name:"有标签"}]->(

    v3:owl_NamedIndividual{name:"高蛋白"}) RETURN v,e1,v2,e2,v3,p limit 20

  • Correct Result

IMG20220317-203214752

  • Command
    MATCH p=(v:owl_Class{name:"畜肉类"})<-[e1]-(v2:owl_NamedIndividual)-[e2:relation{name:"有标签"}]->(

    v3:owl_NamedIndividual{name:"高蛋白"}) RETURN e2,v3,p,v,e1,v2 limit 20

  • ERROR Result
    IMG20220317-20305593

@jianan0982 jianan0982 added the type/bug Type: something is unexpected label Mar 17, 2022
@Sophie-Xie
Copy link
Contributor

We cannot reproduce on nebula 2.5. Can you provide more version info about studio and nebula?

image

@jianan0982
Copy link
Author

jianan0982 commented Mar 18, 2022

复现时查询语句需要加上LIMIT

Nebula version: 2.5
IMG20220318-112238110

Nebula Graph Studio:3.0
IMG20220318-112321598

@jianan0982
Copy link
Author

必须加上LIMIT才能复现当前Bug
MATCH p=(v:owl_Class{name:"畜肉类"})<-[e1]-(v2:owl_NamedIndividual)-[e2:relation{name:"有标签"}]->(v3:owl_NamedIndividual{name:"高蛋白"}) RETURN e2,v3,p,v,e1,v2 LIMIT 20

MATCH p=(v:owl_Class{name:"畜肉类"})<-[e1]-(v2:owl_NamedIndividual)-[e2:relation{name:"有标签"}]->(v3:owl_NamedIndividual{name:"高蛋白"}) RETURN ,v,e1,v2,e2,v3,p LIMIT 20

@Sophie-Xie
Copy link
Contributor

MATCH p=(v:owl_Class{name:"畜肉类"})<-[e1]-(v2:owl_NamedIndividual)-[e2:relation{name:"有标签"}]->(v3:owl_NamedIndividual{name:"高蛋白"}) RETURN e2,v3,p,v,e1,v2 LIMIT 20

Thanks. Is is OK if executing nGQL directly on nebula console without Studio?

@jianan0982
Copy link
Author

在nebula-console运行也是一样的问题
1647580431430
1647580475645

@jievince
Copy link
Contributor

Hi @jianan0982 , it might be a bug caused by a bad optimization rule. nebula-graph v2.6.0 has fixed this bug. You could try to upgrade to v2.6.0.
BTW, the version of nebula you are using is nebula-graph-2021.10.09-nightly which is not v2.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Source: who proposed the issue type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants