Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [1/3] git commit: DRILL-216: Throw exception if someone tries to access a bare _MAP type.


Copy link to this message
-
[1/3] git commit: DRILL-216: Throw exception if someone tries to access a bare _MAP type.
Updated Branches:
  refs/heads/master 56d2cb99d -> 98bc9e19c
DRILL-216: Throw exception if someone tries to access a bare _MAP type.
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/fb9b6e0c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/fb9b6e0c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/fb9b6e0c

Branch: refs/heads/master
Commit: fb9b6e0cdcc9375472213c17975e0c65dd223d99
Parents: 56d2cb9
Author: Jacques Nadeau <[EMAIL PROTECTED]>
Authored: Thu Sep 5 20:45:36 2013 -0700
Committer: Jacques Nadeau <[EMAIL PROTECTED]>
Committed: Thu Sep 5 20:45:36 2013 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/drill/exec/record/VectorContainer.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/fb9b6e0c/exec/java-exec/src/main/java/org/apache/drill/exec/record/VectorContainer.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/record/VectorContainer.java b/exec/java-exec/src/main/java/org/apache/drill/exec/record/VectorContainer.java
index deb31d8..7c1e0ad 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/record/VectorContainer.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/record/VectorContainer.java
@@ -108,6 +108,7 @@ public class VectorContainer implements Iterable<VectorWrapper<?>> {
       if (va.getField().matches(path))
         return new TypedFieldId(va.getField().getType(), i, va.isHyper());
     }
+    if(path.getRootSegment().isNamed() && path.getRootSegment().getNameSegment().getPath().equals("_MAP") && path.getRootSegment().isLastPath()) throw new UnsupportedOperationException("Drill does not yet support map references.");
     return null;
   }