stephen mallette created TINKERPOP-1963:
-------------------------------------------

             Summary: Use of reducing step in choose()
                 Key: TINKERPOP-1963
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1963
             Project: TinkerPop
          Issue Type: Bug
          Components: process
    Affects Versions: 3.2.9
            Reporter: stephen mallette
            Assignee: stephen mallette
             Fix For: 3.2.10


{code}
gremlin> g.inject(1).choose(is(1), constant(true), constant(false))
==>true
gremlin> g.inject(1).choose(is(1), fold(), constant(false))
==>[1]
{code}

But if I put some reducing step in the branch that's not supposed to be emitted:

{code}
gremlin> g.inject(1).choose(is(1), constant(true), fold())
==>[]
==>true
gremlin> g.inject(1).choose(is(1), constant(true), max())
==>NaN
==>true
{code}



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

Reply via email to