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 2016/10/12 19:51:20 UTC

[jira] [Created] (TINKERPOP-1500) and/or infix and choose() do not work correctly.

Marko A. Rodriguez created TINKERPOP-1500:
---------------------------------------------

             Summary: and/or infix and choose() do not work correctly.
                 Key: TINKERPOP-1500
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1500
             Project: TinkerPop
          Issue Type: Bug
          Components: process
    Affects Versions: 3.2.2
            Reporter: Marko A. Rodriguez


The fragment below works as expected.

{code}
choose(and(has("name"), out('knows')), ...)
{code}

However, the next fragment doesn't.

{code}
choose(has("name").and().out('knows'), ...)
{code}


The problem is that {{ConnectiveStrategy}} doesn't treat the {{HasNextStep}} injected by {{choose()}} correctly. The bigger issue is "why do we have a {{HasNextStep}}?! Retarded. We just need to wrap the predicate traversal in a {{filter()}}. ...



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