[
https://issues.apache.org/jira/browse/PIG-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618026#action_12618026
]
Santhosh Srinivasan commented on PIG-285:
-----------------------------------------
This is what I see when I run it on grunt
{noformat}
grunt> ls
hdfs://wilbur20.labs.corp.sp1.yahoo.com:8020/user/sms/data <dir>
grunt> a = load 'data' as (name, age, gpa);
grunt> dump a;
22438 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 0% complete
25315 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 100% complete
27836 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- Completed Successfully
(Joe 20 3.5)
(Harry 20 3.2)
(John 19 3.8)
(Jack 19 3.1)
(Govinda 20 4.0)
grunt> register testudf.jar;
grunt> b = order a by * using org.apache.pig.test.udf.orderby.OrdDesc;
grunt> dump b;
113532 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 0% complete
117077 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 33% complete
121938 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 50% complete
126999 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 66% complete
132339 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 83% complete
137393 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- 100% complete
139418 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
- Completed Successfully
(John 19 3.8)
(Joe 20 3.5)
(Jack 19 3.1)
(Harry 20 3.2)
(Govinda 20 4.0)
grunt>
{noformat}
> 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: Santhosh Srinivasan
> Fix For: types_branch
>
> Attachments: sort_using_udf.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.