pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From knogu...@apache.org
Subject svn commit: r1758812 - in /pig/trunk: CHANGES.txt src/org/apache/pig/newplan/logical/expression/MapLookupExpression.java
Date Thu, 01 Sep 2016 17:02:15 GMT
Author: knoguchi
Date: Thu Sep  1 17:02:15 2016
New Revision: 1758812

URL: http://svn.apache.org/viewvc?rev=1758812&view=rev
Log:
PIG-4975 Map schema shows "Type: null Uid: null" in explain (knoguchi)

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

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1758812&r1=1758811&r2=1758812&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Thu Sep  1 17:02:15 2016
@@ -40,6 +40,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-4975 Map schema shows "Type: null Uid: null" in explain (knoguchi)
+
 PIG-4973: Bigdecimal divison fails (szita via daijy)
 
 PIG-4967: NPE in PigJobControl.run() when job status is null (water via daijy)

Modified: pig/trunk/src/org/apache/pig/newplan/logical/expression/MapLookupExpression.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/newplan/logical/expression/MapLookupExpression.java?rev=1758812&r1=1758811&r2=1758812&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/newplan/logical/expression/MapLookupExpression.java (original)
+++ pig/trunk/src/org/apache/pig/newplan/logical/expression/MapLookupExpression.java Thu Sep
 1 17:02:15 2016
@@ -95,7 +95,8 @@ public class MapLookupExpression extends
         LogicalFieldSchema predFS = successor.getFieldSchema();
         if (predFS!=null) {
             if (predFS.type==DataType.MAP && predFS.schema!=null) {
-                return (predFS.schema.getField(0));
+                fieldSchema = predFS.schema.getField(0);
+                return fieldSchema;
             }
             else {
                 fieldSchema = new LogicalSchema.LogicalFieldSchema(null, null, DataType.BYTEARRAY);



Mime
View raw message