You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Yang Xia (Jira)" <ji...@apache.org> on 2024/08/30 16:22:00 UTC

[jira] [Updated] (TINKERPOP-3088) SumGlobalStep returns a long value even the highest common type's bit <= 32

     [ https://issues.apache.org/jira/browse/TINKERPOP-3088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Xia updated TINKERPOP-3088:
--------------------------------
    Component/s: process

> SumGlobalStep returns a long value even the highest common type's bit <= 32
> ---------------------------------------------------------------------------
>
>                 Key: TINKERPOP-3088
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3088
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>            Reporter: Norio Akagi
>            Priority: Minor
>
> This happens because in
> {noformat}
> @Override
> public S projectTraverser(final Traverser.Admin<S> traverser) {
>     return (S) mul(traverser.get(), traverser.bulk());
> }{noformat}
> It multiplies with bulk, which is Long type, so upcasted. This is at least not in semantics and unexpected behavior



--
This message was sent by Atlassian Jira
(v8.20.10#820010)