You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by ja...@apache.org on 2014/05/10 02:14:19 UTC

[2/6] git commit: DRILL-654: Fix for MaterializedField.getAsSchemaPath()

DRILL-654: Fix for MaterializedField.getAsSchemaPath()


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/16dc94fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/16dc94fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/16dc94fb

Branch: refs/heads/master
Commit: 16dc94fbe18ef4cac1a1e055eb9b5cefe7c7061c
Parents: a925c27
Author: Aditya Kishore <ad...@maprtech.com>
Authored: Wed May 7 07:32:35 2014 -0700
Committer: Jacques Nadeau <ja...@apache.org>
Committed: Fri May 9 16:47:00 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/drill/exec/record/MaterializedField.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/16dc94fb/exec/java-exec/src/main/java/org/apache/drill/exec/record/MaterializedField.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/record/MaterializedField.java b/exec/java-exec/src/main/java/org/apache/drill/exec/record/MaterializedField.java
index a9d53ac..d93e258 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/record/MaterializedField.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/record/MaterializedField.java
@@ -83,8 +83,8 @@ public class MaterializedField{
   }
 
   public SchemaPath getAsSchemaPath(){
-    List<NamePart> nameList = def.getNameList();
-    Collections.reverse(Lists.newArrayList(nameList));
+    List<NamePart> nameList = Lists.newArrayList(def.getNameList());
+    Collections.reverse(nameList);
     PathSegment seg = null;
     for(NamePart p : nameList){
       if(p.getType() == NamePart.Type.ARRAY){