List<QueryResultBatch> result = testSqlWithResults("select sum(a) as total_sum from dfs.`/tmp/parquet_with_nulls_should_sum_100000_nulls_first.parquet`");
assertEquals("Only expected one batch with data, and then the empty finishing batch.", 2, result.size());
RecordBatchLoader loader = new RecordBatchLoader(bit.getContext()
.getAllocator());
QueryResultBatch b = result.get(0);
loader.load(b.getHeader().getDef(), b.getData());
VectorWrapper vw = loader.getValueAccessorById(
NullableBigIntVector.class, //
loader.getValueVectorId(SchemaPath.getCompoundPath("total_sum")).getFieldIds() //
);
assertEquals(4999950000l, vw.getValueVector().getAccessor().getObject(0));
b.release();
loader.clear();
}