[
https://issues.apache.org/jira/browse/PIG-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alan Gates updated PIG-285:
---------------------------
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.
> custom compare functions is ignored
> -----------------------------------
>
> Key: PIG-285
> URL: https://issues.apache.org/jira/browse/PIG-285
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Olga Natkovich
> Assignee: Shravan Matthur Narayanamurthy
> Fix For: types_branch
>
> Attachments: manysortfixes.patch, sortfin.patch
>
>
> The following query successfully runs but the results don't come in the
> correct order:
> a = load 'studenttab10k';
> c = order a by $0 using org.apache.pig.test.udf.orderby.OrdDesc;
> store c into ;out';
> results:
> alice allen 27 1.950
> alice allen 42 2.460
> alice allen 38 0.810
> alice allen 68 3.390
> alice allen 77 2.520
> alice allen 36 2.270
> .....
> expcted:
> zach zipper 66 2.670
> zach zipper 47 2.920
> zach zipper 19 1.910
> zach zipper 23 1.120
> zach zipper 40 2.030
> zach zipper 59 2.530
> .....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.