[ 
https://issues.apache.org/jira/browse/PIG-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019915#comment-13019915
 ] 

Xuefu Zhang commented on PIG-144:
---------------------------------

Now the error we get is:

grunt> A = load '/user/pig/tests/data/singlefile/fileexists';
grunt> B = foreach A generate $2, $1, $0;
grunt> C = strean B through `awk '{print $3 " " $4 "\t" $2 "\t" $1}'`;
2011-04-14 10:02:56,903 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
1200: <line 3, column 11>  mismatched input 'B' expecting LEFT_PAREN
Details at logfile: /home/xuefuz/dev/pig11/pig_1302734768140.log

Here pig is matching the rule for macro inline. I think the error msg now is 
good enough, though not perfect. Case is closed as fixed.

> The error message should be more meaningful when there is a typo in PIg script
> ------------------------------------------------------------------------------
>
>                 Key: PIG-144
>                 URL: https://issues.apache.org/jira/browse/PIG-144
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Xu Zhang
>            Assignee: Xuefu Zhang
>            Priority: Minor
>             Fix For: 0.9.0
>
>
> When I ran the following Pig script on the command line {{"pig -c mycluster 
> myscript.pig"}}, I got the error: 
> 2008-03-07 16:31:45,992 [main] ERROR org.apache.pig.tools.grunt.Grunt -
>   
> {code}
> A = load '/user/pig/tests/data/singlefile/fileexists';
> B = foreach A generate $2, $1, $0;
> C = strean B through `awk '{print $3 " " $4 "\t" $2 "\t" $1}'`;
> store C into '/user/pig/tests/data/singlefile/results1';
> {code}
> The error message is not quite meaningful, and it took me a while to find out 
> what was wrong - the word "strean" should have been "stream".

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

Reply via email to