[
https://issues.apache.org/jira/browse/PIG-3910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978171#comment-13978171
]
Xuefu Zhang commented on PIG-3910:
----------------------------------
>From the symptom, it seems that macro substitution is considering "dump" an
>alias so it tries to mask it. This may be confirmed (so fixed) by looking at
>macro substitution code.
> Cannot use DUMP command in macro
> --------------------------------
>
> Key: PIG-3910
> URL: https://issues.apache.org/jira/browse/PIG-3910
> Project: Pig
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.10.0
> Reporter: Ory
>
> When trying to use a 'DUMP' command inside Macros, I get a syntax error:
> ERROR 1200: <file /tmp/pig-plugin/Ory/1398254029560/ORY_macros.pig, line 27>
> Failed to parse macro 'num_and_dump'. Reason: <file
> /tmp/pig-plugin/Ory/1398254029560/ORY_macros.pig, line 3, column 0> Syntax
> error, unexpected symbol at or near 'DUMP'
> I have found one reference on the web to this being due to issues between
> PigLatin parser and Grunt parser, but that was 2 years ago and I can find no
> further information on this.
--
This message was sent by Atlassian JIRA
(v6.2#6252)