Lei Tang created TINKERPOP-2892:
-----------------------------------

             Summary: Incorrectly comparing a counted value with a predicate 
outside
                 Key: TINKERPOP-2892
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2892
             Project: TinkerPop
          Issue Type: Bug
            Reporter: Lei Tang


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.
{code:java}
gremlin> :> g.E().where(__.inV().count().is(outside(-1,-2))){code}
I also find that, if I remove CountStrategy, Tinkergraph can handle it 
correctly.
{code:java}
gremlin> :> 
g.withoutStrategies(CountStrategy).E().where(__.inV().count().is(outside(-1,-2)))
 ==>e[4][0-knows->2] 
==>e[6][0-knows->5]  {code}
Maybe there is something wrong with CountStrategy?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to