[ https://issues.apache.org/jira/browse/TINKERPOP-3115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955959#comment-17955959 ]
Peter Tribe commented on TINKERPOP-3115: ---------------------------------------- Issue resolved as part of PR https://github.com/apache/tinkerpop/pull/3121 > Better handle overflows with sum() > ---------------------------------- > > Key: TINKERPOP-3115 > URL: https://issues.apache.org/jira/browse/TINKERPOP-3115 > Project: TinkerPop > Issue Type: Improvement > Components: process > Affects Versions: 3.7.2 > Reporter: Stephen Mallette > Priority: Minor > Labels: breaking > > {{code}} > gremlin> g.inject([(byte) 126, (byte) 2]).sum(local) > ==>-128 > {{code}} > that output seems unexpected. oddly it didn't work that way for the global > version of {{sum()}} because the type auto promoted to {{long}} because there > was multiplication by the {{bulk}} which was {{long}}. That changed on > TINKERPOP-3088 though so now even the global version will work like this. > seems like it would be better to promote they type whenever it didn't fit > into the space allotted. -- This message was sent by Atlassian Jira (v8.20.10#820010)