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

[Gremlin] The predicate in where()/has() step returns wrong result #286

Closed
shirly121 opened this issue May 11, 2021 · 1 comment · Fixed by #354
Closed

[Gremlin] The predicate in where()/has() step returns wrong result #286

shirly121 opened this issue May 11, 2021 · 1 comment · Fixed by #354
Labels
bug Something isn't working component:gaia GAIA, the preview release of the next version of GIE

Comments

@shirly121
Copy link
Collaborator

shirly121 commented May 11, 2021

Describe the bug
Some queries produce the wrong results, not consistent with the expected.

To Reproduce

  1. g.V().as("a").out("created").where(__.as("a").values("name").is("josh")).in("created").values("name")
  2. g.V().has("age", P.without(27))
  3. g.V().as("a").out("created").in("created").as("b").where("a", P.gt("b")).by("age").select("a", "b").by("name")

Expected:
1.
==>marko
==>josh
==>peter
==>josh

==>v[1]
==>v[4]
==>v[6]

==>{a=josh, b=marko}
==>{a=peter, b=marko}
==>{a=peter, b=josh}

Actual:

  1. Empty
  2. Not support
  3. Wrong result:
    ==>{a=marko, b=josh}
    ==>{a=marko, b=peter}
    ==>{a=josh, b=peter}
@sighingnow sighingnow added bug Something isn't working component:gie labels May 11, 2021
@longbinlai
Copy link
Collaborator

Could also present the wrong results and expected?

@zhengpingq zhengpingq added component:gaia GAIA, the preview release of the next version of GIE and removed component:gie labels May 11, 2021
@shirly121 shirly121 changed the title [BUG] incorrect results [Gremlin] The where(label, predicate) clause returning wrong result May 14, 2021
@shirly121 shirly121 changed the title [Gremlin] The where(label, predicate) clause returning wrong result [Gremlin] The where(__.as('tag')...) clause returning wrong result May 25, 2021
@BingqingLyu BingqingLyu changed the title [Gremlin] The where(__.as('tag')...) clause returning wrong result [Gremlin] The predicate in where()-step returns wrong result May 25, 2021
@BingqingLyu BingqingLyu changed the title [Gremlin] The predicate in where()-step returns wrong result [Gremlin] The predicate in where()/has() step returns wrong result May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:gaia GAIA, the preview release of the next version of GIE
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants