You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2017/02/01 17:31:51 UTC
[jira] [Commented] (TINKERPOP-1528) CountByIsRangeStrategy fails
for a particular query
[ https://issues.apache.org/jira/browse/TINKERPOP-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848672#comment-15848672 ]
Marko A. Rodriguez commented on TINKERPOP-1528:
-----------------------------------------------
I just verified that this problem still exists in the {{tp32/}} line.
{code}
gremlin> g.V().count().is(0)
gremlin> g.V().count().is(0).explain()
==>Traversal Explanation
=========================================================================================
Original Traversal [GraphStep(vertex,[]), CountGlobalStep, IsStep(eq(0))]
ConnectiveStrategy [D] [GraphStep(vertex,[]), CountGlobalStep, IsStep(eq(0))]
RangeByIsCountStrategy [O] [NotStep([GraphStep(vertex,[])])]
...
{code}
> CountByIsRangeStrategy fails for a particular query
> ---------------------------------------------------
>
> Key: TINKERPOP-1528
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1528
> Project: TinkerPop
> Issue Type: Bug
> Components: process
> Affects Versions: 3.2.3
> Reporter: Daniel Kuppitz
>
> In a fresh TinkerGraph:
> {noformat}
> gremlin> g.V().count()
> ==>0
> gremlin> g.V().count().is(0)
> gremlin>
> {noformat}
> Because of {{.is(0)}} the traversal is converted to something like {{g.not(V())}}. No issues with other values (!= 0).
> {noformat}
> gremlin> g.addV()
> ==>v[0]
> gremlin> g.V().count()
> ==>1
> gremlin> g.V().count().is(0)
> gremlin> g.V().count().is(1)
> ==>1
> gremlin> g.V().count().is(2)
> gremlin>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)