[ 
https://issues.apache.org/jira/browse/PIG-2247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johnny Zhang updated PIG-2247:
------------------------------

    Status: Patch Available  (was: Open)

Hey, [~alangates], I fix this issue by adding detecting logic when substitute 
the macro arguments.

I also add another negative test case to catch this issue.

I run the whole TestMacroExpansion tests and it pass for me.
                
> Pig parser does not detect multiple arguments with the same name passed to 
> macro
> --------------------------------------------------------------------------------
>
>                 Key: PIG-2247
>                 URL: https://issues.apache.org/jira/browse/PIG-2247
>             Project: Pig
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.9.0
>            Reporter: Alan Gates
>            Priority: Minor
>         Attachments: PIG-2247.patch.txt
>
>
> Pig accepts a macro like
> {code}
> define simple_macro(in_relation, min_gpa, min_gpa) returns c {
>                           b = filter $in_relation by gpa >= $min_gpa;
>                           $c = foreach b generate age, name;
> {code}
> This should produce an error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to