You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Gianmarco De Francisci Morales (Updated) (JIRA)" <ji...@apache.org> on 2011/11/21 12:42:53 UTC
[jira] [Updated] (PIG-1468) DataByteArray.compareTo() does not
compare in lexicographic order
[ https://issues.apache.org/jira/browse/PIG-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gianmarco De Francisci Morales updated PIG-1468:
------------------------------------------------
Resolution: Won't Fix
Status: Resolved (was: Patch Available)
We want to keep the comparators consistent.
> DataByteArray.compareTo() does not compare in lexicographic order
> -----------------------------------------------------------------
>
> Key: PIG-1468
> URL: https://issues.apache.org/jira/browse/PIG-1468
> Project: Pig
> Issue Type: Bug
> Reporter: Gianmarco De Francisci Morales
> Assignee: Gianmarco De Francisci Morales
> Attachments: PIG-1468.patch
>
>
> The compareTo() method of org.apache.pig.data.DataByteArray does not compare items in lexicographic order.
> Actually, it takes into account the signum of the bytes that compose the DataByteArray.
> So, for example, 0xff compares to less than 0x00
--
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