hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gianmarco De Francisci Morales (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1468) DataByteArray.compareTo() does not compare in lexicographic order
Date Sun, 11 Jul 2010 11:04:49 GMT

    [ https://issues.apache.org/jira/browse/PIG-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887178#action_12887178
] 

Gianmarco De Francisci Morales commented on PIG-1468:
-----------------------------------------------------

It is quite easy to fix DataType.compare() to keep into account the unsigned logic.
But I am starting to feel that all of this is probably not worth the trouble.
This would make DataType.compare() for Bytes different from Byte.compareTo().


> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message