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

Incorrectly comparing a counted value with a predicate outside

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Tinkergraph cannot correctly compare values using outside(a,b) when a is greater than b. 

      outside(a,b) is used to judging whether the incoming number less than the first provided number or greater than the second. 

      So, in the following example, we expect all edges can be returned. But Tinkergraph returns an empty set.

      gremlin> :> g.E().where(__.inV().count().is(outside(-1,-2)))

      I also find that, if I remove CountStrategy, Tinkergraph can handle it correctly.

      gremlin> :> g.withoutStrategies(CountStrategy).E().where(__.inV().count().is(outside(-1,-2))) ==>e[4][0-knows->2] 
      ==>e[6][0-knows->5]  

      Maybe there is something wrong with CountStrategy?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tangle DBuser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: