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 (JIRA)" <ji...@apache.org> on 2011/09/22 19:27:26 UTC

[jira] [Resolved] (PIG-2238) Pig 0.9 error message not useful as compared to 0.8

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

Daniel Dai resolved PIG-2238.
-----------------------------

      Resolution: Fixed
        Assignee: Daniel Dai
    Hadoop Flags: [Reviewed]

Patch committed to both trunk and 0.9 branch.

> Pig 0.9 error message not useful as compared to 0.8
> ---------------------------------------------------
>
>                 Key: PIG-2238
>                 URL: https://issues.apache.org/jira/browse/PIG-2238
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.9.0
>            Reporter: Vivek Padmanabhan
>            Assignee: Daniel Dai
>             Fix For: 0.9.1
>
>         Attachments: PIG-2238-0.patch, PIG-2238-1.patch, PIG-2238-1_0.9.patch
>
>
> The below is my faulty script (note the usage of alias F) for which Pig 0.9 composes not so useful message as compared to 0.8;
> A = load 'input'  using TextLoader as (doc:chararray) ;
> B = foreach A generate flatten(TOKENIZE(doc)) as myword;
> C = group B by myword parallel 30;
> D = foreach C generate group,COUNT(B) as count,SIZE(group) as size;
> E = order D by size parallel 5;
> >F = limit F 20;
> dump F;
> For this script , error message in 0.9
> >ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2240: LogicalPlanVisitor can only visit logical plan
> Error message in 0.8
> >ERROR 1000: Error during parsing. Unrecognized alias F

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira