Stephen Mallette created TINKERPOP-3115:
-------------------------------------------
Summary: 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
{{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)