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

Use of reducing step in choose()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.9
    • 3.4.0, 3.3.4, 3.2.10
    • process
    • 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

              spmallette Stephen Mallette
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: