pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject svn commit: r1577961 - in /pig/trunk: CHANGES.txt src/org/apache/pig/newplan/logical/Util.java
Date Sun, 16 Mar 2014 01:39:08 GMT
Author: cheolsoo
Date: Sun Mar 16 01:39:07 2014
New Revision: 1577961

URL: http://svn.apache.org/r1577961
Log:
PIG-3809: AddForEach optimization doesn't set the alias of the added foreach (cheolsoo)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/org/apache/pig/newplan/logical/Util.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1577961&r1=1577960&r2=1577961&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Sun Mar 16 01:39:07 2014
@@ -99,6 +99,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-3809: AddForEach optimization doesn't set the alias of the added foreach (cheolsoo)
+
 PIG-3811: PigServer.registerScript() wraps exception incorrectly on parsing errors (prkommireddi)
 
 PIG-3806: PigServer constructor throws NPE after PIG-3765 (aniket486)

Modified: pig/trunk/src/org/apache/pig/newplan/logical/Util.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/newplan/logical/Util.java?rev=1577961&r1=1577960&r2=1577961&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/newplan/logical/Util.java (original)
+++ pig/trunk/src/org/apache/pig/newplan/logical/Util.java Sun Mar 16 01:39:07 2014
@@ -128,6 +128,7 @@ public class Util {
         if (next != null) {
             LogicalRelationalOperator nextOp = (LogicalRelationalOperator)next.get(branch);
             plan.insertBetween(op, foreach, nextOp);
+            foreach.setAlias(op.getAlias());
         }
         else {
             plan.connect(op, foreach);



Mime
View raw message