You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2017/09/11 20:19: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=16161914#comment-16161914 ]
Marko A. Rodriguez commented on TINKERPOP-1777:
-----------------------------------------------
Perhaps throw a {{FastNoSuchElementException}}.
> 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
> Reporter: Sebastian Estevez
>
> 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
(v6.4.14#64029)