cr = client.callProcedure("@AdHoc", "select abs(NUM) from P1 where ID = 0 limit 1");
assertEquals(ClientResponse.SUCCESS, cr.getStatus());
}
private void initialLoad(Client client, String tableName) throws IOException, NoConnectionsException, InterruptedException {
ProcedureCallback callback = new ProcedureCallback() {
@Override
public void clientCallback(ClientResponse clientResponse) throws Exception {
if (clientResponse.getStatus() != ClientResponse.SUCCESS) {
throw new RuntimeException("Failed with response: " + clientResponse.getStatusString());
}