HBase
  1. HBase
  2. HBASE-4648

Bytes.toBigDecimal() doesn't use offset

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.90.4
    • Fix Version/s: 0.92.0, 0.94.0
    • Component/s: util
    • Labels:
      None
    • Environment:

      Java 1.6.0_26, Mac OS X 10.7 and CentOS 6

    • Hadoop Flags:
      Incompatible change, Reviewed

      Description

      The Bytes.toBigDecimal(byte[], offset, len) method does not use the offset, thus you will get an incorrect result for the BigDecimal unless the BigDecimal's bytes are at the beginning of the byte array.

      1. bigdec.patch
        4 kB
        Bryan Keller
      2. bigdec2.patch
        4 kB
        Bryan Keller

        Activity

        Lars Hofhansl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Lars Hofhansl made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.92.0 [ 12314223 ]
        Fix Version/s 0.94.0 [ 12316419 ]
        Resolution Fixed [ 1 ]
        Lars Hofhansl made changes -
        Hadoop Flags Incompatible change,Reviewed [ 10342,10343 ]
        Bryan Keller made changes -
        Attachment bigdec2.patch [ 12500572 ]
        Bryan Keller made changes -
        Field Original Value New Value
        Attachment bigdec.patch [ 12500570 ]
        Bryan Keller created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Bryan Keller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development