Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2893

Incorrectly comparing a counted value with multiple predicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.5.5
    • 3.7.0, 3.6.3, 3.5.6
    • process
    • None

    Description

      We use a composition of two predicates inside(-1,1).and(lt(-1)) to filter numbers that are greater than -1 and less -1. Obviously, no values satisfy this condition. Therefore, we expect Tinkergraph returns an empty set. However, a vertex is returned.

      gremlin> :> g.V().where(__.in('knows').count().is(inside(-1,1).and(lt(-1))))
      ==>v[0] 

      The graph of this example is as following.

      Vertex bob = g.addV("person").property("name", "Bob").next(); // v[0]
      Vertex alice = g.addV("person").property("name", "Alice").next(); // v[1]
      Edge edge1 = g.addE("knows").from(bob).to(alice).next();

      Attachments

        Issue Links

          Activity

            People

              kenhuuu Ken Hu
              tangle DBuser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: