[
https://issues.apache.org/jira/browse/PIG-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Coveney updated PIG-2428:
----------------------------------
Attachment: PIG-2428-1.patch
Daniel, I actually just added an (admittedly lightweight) test.
I added it to TestParser since this error was coming up there, but it also
tests that the sort/limit itself works. I wasn't sure where to put the
test...originally I wanted it to be in TestOrderBy, but alas, those aren't
included tests. I kept the test fairly contained so it could be moved easily.
If you think there should be more, feel free to do so!
> 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
> Attachments: PIG-2428-0.patch, PIG-2428-1.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