Macros and parameters

As a follow-up to this previous post, I want to post a detail from the Pig 0.10.0 documentation:

Parameter substitution cannot be used inside of macros. Parameters should be explicitly passed to macros and parameter substitution used only at the top level. [Source]

So it appears that the example from Alan Gates’ Programming Pig on macros is indeed not working.

A special thank to Gargi for pointing that out.