QueryResultBatch batch = results.get(1);
assertTrue(batchLoader.load(batch.getHeader().getDef(), batch.getData()));
batchLoader.load(batch.getHeader().getDef(), batch.getData());
ValueVector.Accessor output = batchLoader.getValueAccessorById(NullableBigIntVector.class,
batchLoader.getValueVectorId(
new SchemaPath(new PathSegment.NameSegment("output"))).getFieldIds()[0]
).getValueVector().getAccessor();
ValueVector.Accessor sum = batchLoader.getValueAccessorById(
BigIntVector.class,
batchLoader.getValueVectorId(
new SchemaPath(new PathSegment.NameSegment("sum"))).getFieldIds()[0]
).getValueVector().getAccessor();
ValueVector.Accessor cnt = batchLoader.getValueAccessorById(
BigIntVector.class,
batchLoader.getValueVectorId(
new SchemaPath(new PathSegment.NameSegment("cnt"))).getFieldIds()[0]
).getValueVector().getAccessor();
int lastGroup = -1;
long groupCounter = 0;
long s = 0;
for (int r = 1; r <= batchLoader.getRecordCount(); r++) {