You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2018/02/02 13:13:00 UTC
[jira] [Commented] (TINKERPOP-1777) Gremlin .max step returns
-2147483648 for empty result sets
[ https://issues.apache.org/jira/browse/TINKERPOP-1777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350295#comment-16350295 ]
stephen mallette commented on TINKERPOP-1777:
---------------------------------------------
on 3.3.2-SNAPSHOT this now returns:
{code}
gremlin> g.V().has('key').max()
==>NaN
{code}
Arguably, better than {{-2147483648}}. {{FastNoSuchElementException}} seems coarse for this situation. [~dkuppitz] what could {{NumberHelper}} do better here? anything?
> 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)