Dear Wiki user, You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.
The following page has been changed by CharlieGroves: http://wiki.apache.org/pig/ParameterSubstitution The comment on the change is: little formatting fixes, no content updates ------------------------------------------------------------------------------ == Motivation == - This document describes a proposal for implementing parameter substitution in pig. This proposal is motivated by multiple requests from the who would like to create a template pig script and then used it with different parameters on a regular basis. For instance, if you have daily processing that is identical every day except the data it needs to process, it would be very convenient to put a placeholder for the date and provide the actual value at run time. + This document describes a proposal for implementing parameter substitution in pig. This proposal is motivated by multiple requests from users who would like to create a template pig script and then use it with different parameters on a regular basis. For instance, if you have daily processing that is identical every day except the date it needs to process, it would be very convenient to put a placeholder for the date and provide the actual value at run time. == Requirements == - 1. Ability to have parameters within a pig script and provide values for this parameters at run time. + 1. Ability to have parameters within a pig script and provide values for this parameters at run time. - 2. Ability to provide parameter values on the command file + 2. Ability to provide parameter values on the command file - 3. Ability to provide parameter values in a file + 3. Ability to provide parameter values in a file - 4. Ability to generate parameter value at run time by running a binary or script. + 4. Ability to generate parameter value at run time by running a binary or script. - 5. Ability to provide default values for parameters + 5. Ability to provide default values for parameters - 6. Ability to retain the script with all parameters resolved. This is mostly for debugging purposes. + 6. Ability to retain the script with all parameters resolved. This is mostly for debugging purposes. == Interface ==