[
https://issues.apache.org/jira/browse/TINKERPOP-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette closed TINKERPOP-2892.
---------------------------------------
Resolution: Duplicate
I sense the problem is as described in TINKERPOP-2893 and you alluded to it
here with {{CountStrategy}} being at issue. Closing this one as a duplicate.
> 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
> Priority: Major
>
> 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)