[
https://issues.apache.org/jira/browse/TINKERPOP-1777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350700#comment-16350700
]
Daniel Kuppitz commented on TINKERPOP-1777:
-------------------------------------------
{{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)