hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-292) Order by on more than one field returns wrong order
Date Wed, 09 Jul 2008 21:19:31 GMT

     [ https://issues.apache.org/jira/browse/PIG-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alan Gates updated PIG-292:
---------------------------

    Attachment: manysortfixes.patch

This patch contains a lot. The relevant areas are:

1) Fixed DataByteArray.compareTo to first check byte to byte and only size when the bytes
compare equal, instead of other way around (that is, it now matches String.compareTo behavior).

2) Fixed use of binary comparator for hadoop sorting. It was being used anytime we were sorting
on a tuple. It should instead be used anytime we are not doing an order by.

> Order by on more than one field returns wrong order
> ---------------------------------------------------
>
>                 Key: PIG-292
>                 URL: https://issues.apache.org/jira/browse/PIG-292
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>         Attachments: manysortfixes.patch, PIG-292_test.patch
>
>
> Pig scripts with order by of a single column work fine.  But once a second column is
added the data is returned in the wrong order.

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