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 OlgaN:
http://wiki.apache.org/pig/ParameterSubstitution

------------------------------------------------------------------------------
  Parameters can be passed via pig command line using `-param <param>=<val>` 
construct. Multiple parameters can be specified. If the same parameter is 
specified multiple times, the last value will be used and a warning will be 
generated.
  
  {{{
- pig -param date=\'20080201\'
+ pig -param date=20080201
  }}}
  
  ==== Parameter File ====
@@ -56, +56 @@

  {{{
  # my parameters
  
- date = '20080201'
+ date = 20080201
  cmd = `generate_name`
  }}}
  
@@ -95, +95 @@

  
  ==== Value Format ====
  
- Value formats are identical regardless of how the parameter is specified and 
can be of two types. First is a sequence of characters enclosed in single or 
double quotes. In this case the unquoted version of the value is used during 
substitution. Quotes within the value can be escaped.
+ Value formats are identical regardless of how the parameter is specified and 
can be of two types. First is a sequence of characters enclosed in single or 
double quotes. In this case the unquoted version of the value is used during 
substitution. Quotes within the value can be escaped. Single word values that 
dont use special characters such as `%` or `=` don't have to be quoted.
  
  {{{
  %declare DESC 'Joe\'s URL'

Reply via email to