You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Bryan Keller (Updated) (JIRA)" <ji...@apache.org> on 2011/10/25 01:30:32 UTC
[jira] [Updated] (HBASE-4648) Bytes.toBigDecimal() doesn't use
offset
[ https://issues.apache.org/jira/browse/HBASE-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Keller updated HBASE-4648:
--------------------------------
Attachment: bigdec.patch
Here is the patch. I also added some tests for testing serialization with offsets for other data types.
> Bytes.toBigDecimal() doesn't use offset
> ---------------------------------------
>
> Key: HBASE-4648
> URL: https://issues.apache.org/jira/browse/HBASE-4648
> Project: HBase
> Issue Type: Bug
> Components: util
> Affects Versions: 0.90.4
> Environment: Java 1.6.0_26, Mac OS X 10.7 and CentOS 6
> Reporter: Bryan Keller
> Attachments: bigdec.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira