use of org.apache.drill.exec.vector.complex.ListVector in project drill by apache.
the class TestValueVector method testListVectorShouldNotThrowOversizedAllocationException.
@Test
public void testListVectorShouldNotThrowOversizedAllocationException() throws Exception {
final MaterializedField field = MaterializedField.create(EMPTY_SCHEMA_PATH, Types.optional(TypeProtos.MinorType.LIST));
ListVector vector = new ListVector(field, allocator, null);
ListVector vectorFrom = new ListVector(field, allocator, null);
vectorFrom.allocateNew();
for (int i = 0; i < 10000; i++) {
vector.allocateNew();
vector.copyFromSafe(0, 0, vectorFrom);
vector.clear();
}
vectorFrom.clear();
vector.clear();
}
Aggregations