[
https://issues.apache.org/jira/browse/PIG-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Dai updated PIG-2238:
----------------------------
Attachment: PIG-2238-0.patch
We need a NPE check at LogicalPlanBuilder:439. Unfortunately we need to change
other places to allow throw exception in method signature. Attach a draft patch.
> 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
> Attachments: PIG-2238-0.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