You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Vaibhav Puranik (JIRA)" <ji...@apache.org> on 2011/05/19 22:34:47 UTC

[jira] [Updated] (HBASE-3902) Add Bytes.toBigDecimal and Bytes.toBytes(BigDecimal)

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

Vaibhav Puranik updated HBASE-3902:
-----------------------------------

    Attachment: big-decimal-methods-patch.txt

Patch attached. Methods copied from 0.20.6 branch

> Add Bytes.toBigDecimal and Bytes.toBytes(BigDecimal) 
> -----------------------------------------------------
>
>                 Key: HBASE-3902
>                 URL: https://issues.apache.org/jira/browse/HBASE-3902
>             Project: HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.90.1, 0.90.2
>            Reporter: Vaibhav Puranik
>             Fix For: 0.90.4
>
>         Attachments: big-decimal-methods-patch.txt
>
>
> Bytes.toBigDecimal and Bytes.toBytes were removed in 0.90.x. Please add it back. We have data encoded using these methods. I don't think BigDecimal class as getBytes/toBytes methods. And even if it had it, if the logic of encoding it into bytes is different, it wouldn't work with the existing data. I am sure that lot of people might face this issue. 
> I will submit the patch in a day or two.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira