public class TestLoad extends ExecTest {
@Test
public void testLoadValueVector() throws Exception {
BufferAllocator allocator = new TopLevelAllocator();
ValueVector fixedV = new IntVector(MaterializedField.create(new SchemaPath("ints", ExpressionPosition.UNKNOWN),
Types.required(MinorType.INT)), allocator);
ValueVector varlenV = new VarCharVector(MaterializedField.create(
new SchemaPath("chars", ExpressionPosition.UNKNOWN), Types.required(MinorType.VARCHAR)), allocator);
ValueVector nullableVarlenV = new NullableVarCharVector(MaterializedField.create(new SchemaPath("chars",
ExpressionPosition.UNKNOWN), Types.optional(MinorType.VARCHAR)), allocator);
List<ValueVector> vectors = Lists.newArrayList(fixedV, varlenV, nullableVarlenV);
for (ValueVector v : vectors) {
AllocationHelper.allocate(v, 100, 50);