From 7bb7489afc7a2cc496be93ae69681b6ab13a7c66 Mon Sep 17 00:00:00 2001 From: samarthjain Date: Wed, 1 Jul 2020 12:02:23 -0700 Subject: [PATCH] Fix UnknownTypeComplexColumn#makeVectorObjectSelector --- .../column/UnknownTypeComplexColumn.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/processing/src/main/java/org/apache/druid/segment/column/UnknownTypeComplexColumn.java b/processing/src/main/java/org/apache/druid/segment/column/UnknownTypeComplexColumn.java index 7332a5c3822..ce4db70438e 100644 --- a/processing/src/main/java/org/apache/druid/segment/column/UnknownTypeComplexColumn.java +++ b/processing/src/main/java/org/apache/druid/segment/column/UnknownTypeComplexColumn.java @@ -25,7 +25,6 @@ import org.apache.druid.segment.data.ReadableOffset; import org.apache.druid.segment.vector.NilVectorSelector; import org.apache.druid.segment.vector.ReadableVectorOffset; import org.apache.druid.segment.vector.VectorObjectSelector; -import org.apache.druid.segment.vector.VectorSizeInspector; import javax.annotation.Nullable; @@ -38,22 +37,6 @@ public class UnknownTypeComplexColumn implements ComplexColumn return INSTANCE; } - private static final NilVectorSelector NIL_VECTOR_SELECTOR_INSTANCE = - NilVectorSelector.create(new VectorSizeInspector() - { - @Override - public int getMaxVectorSize() - { - return 0; - } - - @Override - public int getCurrentVectorSize() - { - return 0; - } - }); - @Override public Class getClazz() { @@ -94,6 +77,6 @@ public class UnknownTypeComplexColumn implements ComplexColumn @Override public VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset) { - return NIL_VECTOR_SELECTOR_INSTANCE; + return NilVectorSelector.create(offset); } }