Fix UnknownTypeComplexColumn#makeVectorObjectSelector

This commit is contained in:
samarthjain 2020-07-01 12:02:23 -07:00
parent d3497a6581
commit 7bb7489afc
1 changed files with 1 additions and 18 deletions

View File

@ -25,7 +25,6 @@ import org.apache.druid.segment.data.ReadableOffset;
import org.apache.druid.segment.vector.NilVectorSelector; import org.apache.druid.segment.vector.NilVectorSelector;
import org.apache.druid.segment.vector.ReadableVectorOffset; import org.apache.druid.segment.vector.ReadableVectorOffset;
import org.apache.druid.segment.vector.VectorObjectSelector; import org.apache.druid.segment.vector.VectorObjectSelector;
import org.apache.druid.segment.vector.VectorSizeInspector;
import javax.annotation.Nullable; import javax.annotation.Nullable;
@ -38,22 +37,6 @@ public class UnknownTypeComplexColumn implements ComplexColumn
return INSTANCE; 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 @Override
public Class<?> getClazz() public Class<?> getClazz()
{ {
@ -94,6 +77,6 @@ public class UnknownTypeComplexColumn implements ComplexColumn
@Override @Override
public VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset) public VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset)
{ {
return NIL_VECTOR_SELECTOR_INSTANCE; return NilVectorSelector.create(offset);
} }
} }