[ https://issues.apache.org/jira/browse/PIG-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Huo Zhu updated PIG-3394: ------------------------- Priority: Major (was: Critical) Summary: pig parser complain same value passed to macro when expanding macro (was: pig parser complain same value passed to macro when expand macro) > pig parser complain same value passed to macro when expanding macro > --------------------------------------------------------------------- > > Key: PIG-3394 > URL: https://issues.apache.org/jira/browse/PIG-3394 > Project: Pig > Issue Type: Bug > Components: parser > Affects Versions: 0.12 > Reporter: Huo Zhu > > [PIG_2247|https://issues.apache.org/jira/browse/PIG-2247] add the same > arguments detecting before passed to macro, but cause the following problems > {noformat} > 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;} > a = load 'sample.txt'; > b = simple_macro(a, 100, 100); > {noformat} > when launch in pig, it complain > {noformat} > ERROR org.apache.pig.Main - ERROR 1200: <file abc.pig.substituted, line 7> > Cannot expand macro 'simple_macro'. Reason: Duplicated arguments names are > passed in macro: number of arguments: 3 number of distinct arguments: 2 > {noformat} -- 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