You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Martijn Dwars (JIRA)" <ji...@apache.org> on 2019/01/21 20:38:00 UTC

[jira] [Created] (TINKERPOP-2136) Inside lower bound inclusion (documentation)

Martijn Dwars created TINKERPOP-2136:
----------------------------------------

             Summary: Inside lower bound inclusion (documentation)
                 Key: TINKERPOP-2136
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2136
             Project: TinkerPop
          Issue Type: Bug
            Reporter: Martijn Dwars


On [http://tinkerpop.apache.org/docs/current/reference/#has-step] there is an example:
{code:java}
g.V().has('age',inside(20,30)).values('age') // 1
{code}
with the comment:
{code:java}
Find all vertices whose ages are between 20 (inclusive) and 30 (exclusive).
{code}
But if I run this in the Gremlin Groovy shell I see:
{code:java}
gremlin> g.V().has('age', inside(10, 30)).toString()
==>[GraphStep(vertex,[]), HasStep([age.and(gt(10), lt(30))])]
{code}
which means the lower bound and upper bound are both exclusive. In particular, the lower bound is exclusive, _not_ inclusive. Right?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)