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/Grunt

------------------------------------------------------------------------------
  [[Anchor(dump)]]
  ==== dump ====
  Allows to dump content of `pig` alias to the screen. Useful for debugging. 
Described in PigLatin
- [[Anchor(help)]]
  
  [[Anchor(explain)]]
  ==== explain ====
@@ -292, +291 @@

  
  The output consists of two parts: logical plan and physical plan. The logical 
plan shows a pipeline of operators to be executed to build the relation. The 
physical plan shows how this is mapped to the physical backend; in this case - 
Hadoop.
  
+ [[Anchor(help)]]
  ==== help ====
  This command shows available commands.
  
@@ -322, +322 @@

  debugOff
  quit
  }}}
+ 
+ [[Anchor(illustrate)]]
+ ==== illustrate ====
+ 
+ This command shows a sample execution of your script.
+ 
+ {{{
+ grunt> A = load '/user/pig/tests/data/singlefile/studenttab10k' using 
PigStorage('\t') as (name, age, gpa);
+ grunt> B = group A by name;
+ grunt> C = foreach B generate group, COUNT(A.$1);
+ grunt> illustrate C;
+ 
+ ----------------------------------------
+ | A     | name         | age   | gpa   | 
+ ----------------------------------------
+ |       | xavi ... bec | 58    | 2.99  | 
+ |       | xavi ... bec | 23    | 0.59  | 
+ ----------------------------------------
+ 
-------------------------------------------------------------------------------
+ | B     | group        | A: (name, age, gpa )                                 
| 
+ 
-------------------------------------------------------------------------------
+ |       | xavi ... bec | {(xavi ... bec, 58, 2.99), (xavi ... bec, 23, 0.59)} 
| 
+ 
-------------------------------------------------------------------------------
+ ---------------------------------
+ | C     | group        | count1 | 
+ ---------------------------------
+ |       | xavi ... bec | 2      | 
+ ---------------------------------
+ }}}
+ 
+ The details can be seen in ExampleGenerator.
+ 
  [[Anchor(kill)]]
  ==== kill ====
  This command allows to kill a job based on its job id.
- 
  
  {{{
  kill <JOBID>

Reply via email to