[
https://issues.apache.org/jira/browse/PIG-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439891#comment-13439891
]
Koji Noguchi commented on PIG-2887:
-----------------------------------
Sample input and error message
{noformat}
% cat sample.pig
define moreThanMinus1(myinput) RETURNS myoutput {
$myoutput = filter $myinput by points > -1;
}
A = LOAD 'tmp/input.txt' as (user:chararray,points:int);
B = moreThanMinus1(A);
DUMP B;
% java -cp org.apache.pig.Main -x local -dryrun sample.pig
...
2012-08-22 17:53:51,650 [main] ERROR org.apache.pig.Main - ERROR 1200: <file
sample.pig.substituted, line 6> Failed to mask macro 'moreThanMinus1'. Reason:
/Users/knoguchi/git/pig/src/org/apache/pig/parser/AliasMasker.g: node from line
2:27 mismatched tree node: 1 expecting <DOWN>
macro content:
B = filter A by points > -1;
...
%
{noformat}
> Macro cannot handle negative number
> -----------------------------------
>
> Key: PIG-2887
> URL: https://issues.apache.org/jira/browse/PIG-2887
> Project: Pig
> Issue Type: Bug
> Components: parser
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Minor
>
> Whenever the macro includes some negative number, parser bails out with
> "/AliasMasker.g:
> node from line __:__ mismatched tree node: 1 expecting <DOWN>"
--
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