You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Daniel Kuppitz (JIRA)" <ji...@apache.org> on 2016/09/15 12:34:20 UTC

[jira] [Commented] (TINKERPOP-1429) Branch step inside where step misbehaves

    [ https://issues.apache.org/jira/browse/TINKERPOP-1429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15493179#comment-15493179 ] 

Daniel Kuppitz commented on TINKERPOP-1429:
-------------------------------------------

I'm not entirely sure why this happens, but you have a few options to work around this issue:

{code}
// expected result is 11; the first traversal is the original branching traversal from your test, the other 2 traversals are workarounds
gremlin> graph.traversal().V(root).out("e_0").where(branch(label()).option("v_0", __.out("e_1")).count().is(1)).count()
==>7
gremlin> graph.traversal().V(root).out("e_0").where(branch(label()).option("v_0", __.out("e_1")).barrier().count().is(1)).count()
==>11
gremlin> graph.traversal().V(root).out("e_0").where(choose(label()).option("v_0", __.out("e_1").count()).is(1)).count()
==>11
{code}

> Branch step inside where step misbehaves
> ----------------------------------------
>
>                 Key: TINKERPOP-1429
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1429
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.0.1-incubating
>            Reporter: Jordi Chacon
>            Priority: Minor
>
> https://groups.google.com/forum/#!topic/gremlin-users/0LSvVRtjERg



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)