Stephen Mallette created TINKERPOP-3089:
-------------------------------------------

             Summary: min() and max() local forms not working properly with 
empty iterator input
                 Key: TINKERPOP-3089
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3089
             Project: TinkerPop
          Issue Type: Improvement
          Components: process
    Affects Versions: 3.7.2
            Reporter: Stephen Mallette


{code}
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
{code}

Encounters the first empty list and then stops.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to