[ https://issues.apache.org/jira/browse/PIG-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheolsoo Park resolved PIG-3394. -------------------------------- Resolution: Fixed As discussed, I reverted PIG-2247: http://svn.apache.org/viewvc?view=revision&revision=1507395 Closing the jira now. > 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, max_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} > it seems passing the same value to different paramter also not allowed -- 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