[
https://issues.apache.org/jira/browse/TINKERPOP-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette closed TINKERPOP-3089.
---------------------------------------
Fix Version/s: 4.0.0
3.7.3
Assignee: Stephen Mallette
Resolution: Fixed
> 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)