Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14647

[JavaScript] bignumToNumber returns incorrect results for negative numbers

    XMLWordPrintableJSON

Details

    Description

      I have the following in my data:

       

      v = new Uint32Array([4294786450, 4294967295, 4294967295, 4294967295]) 

      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.

       

      Attachments

        Issue Links

          Activity

            People

              bmatcuk Bob Matcuk
              bmatcuk Bob Matcuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h