[ 
https://issues.apache.org/jira/browse/TINKERPOP-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette updated TINKERPOP-3089:
----------------------------------------
    Issue Type: Bug  (was: Improvement)

> 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: Bug
>          Components: process
>    Affects Versions: 3.7.2
>            Reporter: Stephen Mallette
>            Priority: Critical
>
> {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