final VoltTable vt = this.loadTable(client);
Database catalog_db = CatalogUtil.getDatabase(this.getCatalog());
Table catalog_tbl = catalog_db.getTables().get("TABLEC");
assertNotNull(catalog_tbl);
Column catalog_col = catalog_tbl.getColumns().get("C_VALUE0");
assertNotNull(catalog_col);
// Compute the AVG in Java so that we can compare
Map<Integer, List<Integer>> values = new HashMap<Integer, List<Integer>>();
vt.resetRowPosition();
while (vt.advanceRow()) {
int c_b_a_id = (int)vt.getLong(2) % num_partitions;
if (values.containsKey(c_b_a_id) == false) {
values.put(c_b_a_id, new ArrayList<Integer>());
}
values.get(c_b_a_id).add((int)vt.getLong(catalog_col.getIndex()));
} // WHILE
Map<Integer, Double> expectedValues = new HashMap<Integer, Double>();
for (Integer c_b_a_id : values.keySet()) {
int total = 0;
for (Integer val : values.get(c_b_a_id))