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 21:41:47 UTC

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

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.2, 0.90.1
            Reporter: Vaibhav Puranik
             Fix For: 0.90.4


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

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

Posted by "Vaibhav Puranik (JIRA)" <ji...@apache.org>.
     [ 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

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

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-3902.
--------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Committed to branch and trunk.  Thanks for the patch Vaibhav.

> 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

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037171#comment-13037171 ] 

Hudson commented on HBASE-3902:
-------------------------------

Integrated in HBase-TRUNK #1930 (See [https://builds.apache.org/hudson/job/HBase-TRUNK/1930/])
    

> 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