You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dominik Moritz (Jira)" <ji...@apache.org> on 2022/04/06 17:01:00 UTC

[jira] [Resolved] (ARROW-14647) bignumToNumber returns incorrect results for negative numbers

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

Dominik Moritz resolved ARROW-14647.
------------------------------------
    Fix Version/s: 8.0.0
       Resolution: Fixed

Issue resolved by pull request 11655
[https://github.com/apache/arrow/pull/11655]

> bignumToNumber returns incorrect results for negative numbers
> -------------------------------------------------------------
>
>                 Key: ARROW-14647
>                 URL: https://issues.apache.org/jira/browse/ARROW-14647
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 6.0.0
>            Reporter: Bob Matcuk
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 8.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> I have the following in my data:
>  
> {code:java}
> v = new Uint32Array([4294786450, 4294967295, 4294967295, 4294967295]) {code}
> bignumToNumber converts this to -18446744069414765000 but it should be -180846.
> I actually suspect that bignumToNumber fails on anything greater than 64 bits, but I don't have any positive test cases.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)