You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/14 01:08:41 UTC
[jira] [Resolved] (PIG-2428) In pig9, can't have limit(order by)
without getting a null error
[ https://issues.apache.org/jira/browse/PIG-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai resolved PIG-2428.
-----------------------------
Resolution: Fixed
Fix Version/s: 0.11
0.10
0.9.2
Hadoop Flags: Reviewed
Unit tests pass.
test-patch:
[exec] -1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec]
[exec] -1 javadoc. The javadoc tool appears to have generated 1 warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] +1 release audit. The applied patch does not increase the total number of release audit warnings.
I checked javadoc warning and it does not seems to be related.
Patch committed to 0.9 branch (0.10/trunk already has this fix).
> In pig9, can't have limit(order by) without getting a null error
> ----------------------------------------------------------------
>
> Key: PIG-2428
> URL: https://issues.apache.org/jira/browse/PIG-2428
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.9.0, 0.9.2
> Reporter: Jonathan Coveney
> Assignee: Jonathan Coveney
> Fix For: 0.9.2, 0.10, 0.11
>
> Attachments: PIG-2428-0.patch, PIG-2428-1.patch, PIG-2428-2.patch
>
>
> {code}
> a = load 'thing' as (x:int);
> b = group a by x;
> c = foreach b generate group as x, COUNT(a) as count;
> d = limit (order c by count DESC) 2000;
> describe d;
> {code}
> This gives the following error:
> 2011-12-13 13:56:32,144 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1005: No plan for d to describe
> In trunk, it ran without issue. Not sure what the difference is, but it'd be nice to patch 0.9.2 since a lot of people (including amazon!) are using pig 9 now.
--
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