Macro missing returns clause doesn't give a good error message
--------------------------------------------------------------

                 Key: PIG-2058
                 URL: https://issues.apache.org/jira/browse/PIG-2058
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.9.0
            Reporter: Xuefu Zhang
            Assignee: Xuefu Zhang
             Fix For: 0.9.0


For the following query:

define test( out1,out2 ){
   A  = load 'x' as (u:int, v:int);
   $B  = filter A by u < 3 and v <  20;
}

Pig gives the following error message: Syntax error,unexpected symbol at or 
near '{'

Previously, it gives: mismatched input '{' expecting RETURNS

The previous message is more meaningful.

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

Reply via email to