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

min() and max() local forms not working properly with empty iterator input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.7.2
    • 4.0.0, 3.7.3
    • process
    • None

    Description

      gremlin> g.V().local(union(values("age"), outE().values("weight")).fold())
      ==>[29,0.4,0.5,1.0]
      ==>[27]
      ==>[]
      ==>[32,1.0,0.4]
      ==>[]
      ==>[35,0.2]
      gremlin> g.V().local(union(values("age"), outE().values("weight")).fold()).max(local)
      ==>29.0
      ==>27
      

      Encounters the first empty list and then stops.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: