[ https://issues.apache.org/jira/browse/HIVE-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phabricator updated HIVE-2903: ------------------------------ Attachment: HIVE-2903.D2481.1.patch navis requested code review of "HIVE-2903 [jira] Numeric binary type keys are not compared properly". Reviewers: JIRA DPAL-1007 Numeric binary type keys are not compared properly In current binary format for numbers, minus values are always greater than plus values, for example. System.our.println(Bytes.compareTo(Bytes.toBytes(-100), Bytes.toBytes(100))); // 255 TEST PLAN EMPTY REVISION DETAIL https://reviews.facebook.net/D2481 AFFECTED FILES hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java hbase-handler/src/java/org/apache/hadoop/hive/hbase/LazyHBaseRow.java hbase-handler/src/test/queries/external_table_ppd.q hbase-handler/src/test/results/external_table_ppd.q.out MANAGE HERALD DIFFERENTIAL RULES https://reviews.facebook.net/herald/view/differential/ WHY DID I GET THIS EMAIL? https://reviews.facebook.net/herald/transcript/5565/ Tip: use the X-Herald-Rules header to filter Herald messages in your client. > 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