Author: gates
Date: Mon Aug 11 14:25:37 2008
New Revision: 684940

URL: http://svn.apache.org/viewvc?rev=684940&view=rev
Log:
PIG-337 Daniel's fix for limit k where k > total lines returning too few 
results.


Modified:
    
incubator/pig/branches/types/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MRCompiler.java

Modified: 
incubator/pig/branches/types/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MRCompiler.java
URL: 
http://svn.apache.org/viewvc/incubator/pig/branches/types/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MRCompiler.java?rev=684940&r1=684939&r2=684940&view=diff
==============================================================================
--- 
incubator/pig/branches/types/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MRCompiler.java
 (original)
+++ 
incubator/pig/branches/types/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MRCompiler.java
 Mon Aug 11 14:25:37 2008
@@ -663,8 +663,8 @@
                     POProject prj1 = new POProject(new 
OperatorKey(scope,nig.getNextNodeId(scope)));
                     prj1.setResultType(DataType.TUPLE);
                     prj1.setStar(false);
-                    prj1.setColumn(0);
-                    prj1.setOverloaded(false);
+                    prj1.setColumn(1);
+                    prj1.setOverloaded(true);
                     ep1.add(prj1);
                     eps1.add(ep1);
                     flat1.add(false);


Reply via email to