[ 
https://issues.apache.org/jira/browse/TINKERPOP-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17862509#comment-17862509
 ] 

ASF GitHub Bot commented on TINKERPOP-3089:
-------------------------------------------

spmallette commented on PR #2665:
URL: https://github.com/apache/tinkerpop/pull/2665#issuecomment-2191555913

   VOTE +1




> 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
>            Assignee: Stephen Mallette
>            Priority: Critical
>             Fix For: 4.0.0, 3.7.3
>
>
> {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