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

ASF GitHub Bot commented on TINKERPOP-1777:
-------------------------------------------

Github user dkuppitz commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/805#discussion_r172874794
  
    --- Diff: gremlin-test/features/branch/Union.feature ---
    @@ -135,7 +135,6 @@ Feature: Step - union()
           | d[3].l   |
           | d[0].l   |
           | d[1.9].d |
    -      | d[0].i   |
    --- End diff --
    
    > just so i'm clear, this value is no longer in the output because vadas 
(aka v[2]) has no out edges to sum a weight on...is that right?
    
    Exactly.
    
    It's the same thing as doing just `g.V(2).outE()` - the traverser would 
simply die as there are no outgoing edges. Likewise with 
`outE().values('weight').sum()`, there simply is no sum, hence the traverser 
dies.


> 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
>            Assignee: Daniel Kuppitz
>            Priority: Major
>              Labels: breaking
>
> 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