double expected_results[] = {
MathUtil.arithmeticMean(val_nums),
MathUtil.arithmeticMean(val_ratios),
};
String query = String.format("SELECT AVG(NUM), AVG(RATIO) FROM %s", table);
VoltTable[] results = client.callProcedure("@AdHoc", query).getResults();
assertEquals(1, results.length);
assertEquals(1, results[0].getRowCount());
assertTrue(results[0].advanceRow());
for (int i = 0; i < expected_results.length; ++i) {
double val = ((Number)results[0].get(i, results[0].getColumnType(i))).doubleValue();