hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2903) Numeric binary type keys are not compared properly
Date Tue, 27 Mar 2012 00:41:27 GMT

    [ https://issues.apache.org/jira/browse/HIVE-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239075#comment-13239075
] 

Ashutosh Chauhan commented on HIVE-2903:
----------------------------------------

Yeah, I am having hard time believing that hbase lets you do this. I am not sure if the bug
is present in some form in hbase. Your experiment does suggest its there in hbase. If it is,
then it certainly makes sense to patch hbase, instead of special handling it ourselves. 
                
> Numeric binary type keys are not compared properly
> --------------------------------------------------
>
>                 Key: HIVE-2903
>                 URL: https://issues.apache.org/jira/browse/HIVE-2903
>             Project: Hive
>          Issue Type: Bug
>          Components: HBase Handler
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-2903.D2481.1.patch
>
>
> In current binary format for numbers, minus values are always greater than plus values,
for example.
> {code}
> System.our.println(Bytes.compareTo(Bytes.toBytes(-100), Bytes.toBytes(100))); // 255
> {code}

--
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

        

Mime
View raw message