You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2014/10/13 02:23:42 UTC

svn commit: r1631271 - in /pig/trunk: CHANGES.txt src/docs/src/documentation/content/xdocs/basic.xml

Author: daijy
Date: Mon Oct 13 00:23:42 2014
New Revision: 1631271

URL: http://svn.apache.org/r1631271
Log:
PIG-4230: Documentation fix: first nested foreach example is incomplete

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/docs/src/documentation/content/xdocs/basic.xml

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1631271&r1=1631270&r2=1631271&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Mon Oct 13 00:23:42 2014
@@ -94,6 +94,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-4230: Documentation fix: first nested foreach example is incomplete (lbendig via daijy)
+
 PIG-3979: group all performance, garbage collection, and incremental aggregation (ddreyfus via daijy)
 
 PIG-4199: Mapreduce ACLs should be translated to Tez ACLs (rohini)

Modified: pig/trunk/src/docs/src/documentation/content/xdocs/basic.xml
URL: http://svn.apache.org/viewvc/pig/trunk/src/docs/src/documentation/content/xdocs/basic.xml?rev=1631271&r1=1631270&r2=1631271&view=diff
==============================================================================
--- pig/trunk/src/docs/src/documentation/content/xdocs/basic.xml (original)
+++ pig/trunk/src/docs/src/documentation/content/xdocs/basic.xml Mon Oct 13 00:23:42 2014
@@ -6495,12 +6495,14 @@ E = GROUP D BY A::x;
    <title>Example: Nested Block</title>
       <p>In this example a CROSS is performed within the nested block.</p>
 <source>
- user = load 'user' as (uid, age, gender, region);
+user = load 'user' as (uid, age, gender, region);
 session = load 'session' as (uid, region);
 C = cogroup user by uid, session by uid;
 D = foreach C {
     crossed = cross user, session;
-    generate crossed;  
+    generate crossed;
+}
+dump D;  
 </source>
 <p>In this example FOREACH is nested to the second level.</p>
 <source>