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

Daniel Kuppitz edited comment on TINKERPOP-1777 at 2/2/18 6:25 PM:
-------------------------------------------------------------------

{{FastNoSuchElementException}} should actually be expected. There's a bug in 
{{ReducingBarrierStep}} that assigns the seed value although there are no 
elements. Easy one line fix, but the other {{NaN}} issue I mentioned is 
trickier than I thought.

 

*UPDATE*

It's not an easy one-line fix; this "fix' actually broke a ton of test cases.


was (Author: dkuppitz):
{{FastNoSuchElementException}} should actually be expected. There's a bug in 
{{ReducingBarrierStep}} that assigns the seed value although there are no 
elements. Easy one line fix, but the other {{NaN}} issue I mentioned is 
trickier than I thought.

> Gremlin .max step returns -2147483648 for empty result sets
> -----------------------------------------------------------
>
>                 Key: TINKERPOP-1777
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1777
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.2.6
>            Reporter: Sebastian Estevez
>            Priority: Major
>
> To reproduce:
> {code}gremlin> g.V().values('test').max()
> ==>-2147483648{code}
> This should probably return an exeption, "cannot take max of nothing"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to