You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Rok Mihevc (Jira)" <ji...@apache.org> on 2023/01/11 07:07:01 UTC

[jira] [Commented] (ARROW-61) [Java] Method can return the value bigger than long MAX_VALUE

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

Rok Mihevc commented on ARROW-61:
---------------------------------

This issue has been migrated to [issue #15305|https://github.com/apache/arrow/issues/15305] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details.

> [Java] Method can return the value bigger than long MAX_VALUE
> -------------------------------------------------------------
>
>                 Key: ARROW-61
>                 URL: https://issues.apache.org/jira/browse/ARROW-61
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>         Environment: Apache Drill, Apache Arrow
>            Reporter: Vitalii Diravka
>            Assignee: Ji Liu
>            Priority: Major
>              Labels: adjustScale, arrow, decimal, pull-request-available
>             Fix For: 0.14.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Method org.apache.drill.exec.util.DecimalUtility.adjustScaleMultiply(long input, int factor) can return the value bigger than long max value.
> For example by comparison two decimal18 values 9223372036854775807 and 0.001. To adjust first value scale this method should return 9223372036854775807 * 1000 - bigger than long max value.
> Class DecimalUtility.java will be a part of org.apache.arrow after renaming described in [DRILL-4455 Depend on Apache Arrow for Vector and Memory| https://issues.apache.org/jira/browse/DRILL-4455]



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