From 31b5962250675c45bcbe3c3fe6babeba5deb21fc Mon Sep 17 00:00:00 2001 From: Jinfeng Ni Date: Fri, 30 May 2014 11:07:03 -0700 Subject: DRILL-927: Run-time code generation support for reading Complex Type. Fix in RepeatedMapVector. --- common/src/main/java/org/apache/drill/common/types/Types.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common') diff --git a/common/src/main/java/org/apache/drill/common/types/Types.java b/common/src/main/java/org/apache/drill/common/types/Types.java index e2c331056..10d84e1d1 100644 --- a/common/src/main/java/org/apache/drill/common/types/Types.java +++ b/common/src/main/java/org/apache/drill/common/types/Types.java @@ -46,6 +46,10 @@ public class Types { return false; } + public static boolean isRepeated(MajorType type){ + return type.getMode() == REPEATED ; + } + public static boolean isNumericType(MajorType type){ if(type.getMode() == REPEATED) return false; @@ -344,6 +348,8 @@ public class Types { return withMode(MinorType.TIME, mode); case "binary": return withMode(MinorType.VARBINARY, mode); + case "json": + return withMode(MinorType.VARBINARY, mode); default: throw new UnsupportedOperationException("Could not determine type: " + typeName); } -- cgit v1.2.3