Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1963

Use of reducing step in choose()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.9
    • Fix Version/s: 3.4.0, 3.3.4, 3.2.10
    • Component/s: process
    • Labels:
      None

      Description

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

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

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spmallette Stephen Mallette
                Reporter:
                spmallette Stephen Mallette
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: