assertEquals(cr.toString(), Status.OK, cr.getStatus());
}
} // FOR
assertTrue(cr.hasDebug());
ClientResponseDebug crDebug = cr.getDebug();
assertFalse(crDebug.toString(), crDebug.isPredictSinglePartition());
assertFalse(cr.toString(), cr.isSpeculative());
assertEquals(crDebug.toString(), crDebug.getPredictTouchedPartitions(), crDebug.getExecTouchedPartitions());
assertEquals(crDebug.toString(), crDebug.getPredictTouchedPartitions(), crDebug.getExecTouchedPartitions());
Procedure catalog_proc = catalogContext.procedures.getIgnoreCase(procName);
Set<Statement> expectedStmts = new HashSet<Statement>();
expectedStmts.add(catalog_proc.getStatements().getIgnoreCase("getStockInfo"));
expectedStmts.add(catalog_proc.getStatements().getIgnoreCase("updateStock"));
for (int partition : crDebug.getExecTouchedPartitions()) {
List<CountedStatement> query_estimates[] = crDebug.getRemoteQueryEstimates(catalogContext, partition);
assertNotNull(query_estimates);
// System.err.println("PARTITION: " + partition);
// for (List<CountedStatement> queries : query_estimates) {
// System.err.println(StringUtil.join("\n", queries));