use of org.apache.hive.service.rpc.thrift.TGetOperationStatusResp in project hive by apache.
the class HiveStatement method waitForResultSetStatus.
/**
* Poll the result set status by checking if isSetHasResultSet is set
* @return
* @throws SQLException
*/
private TGetOperationStatusResp waitForResultSetStatus() throws SQLException {
TGetOperationStatusReq statusReq = new TGetOperationStatusReq(stmtHandle);
TGetOperationStatusResp statusResp = null;
while (statusResp == null || !statusResp.isSetHasResultSet()) {
try {
statusResp = client.GetOperationStatus(statusReq);
} catch (TException e) {
isLogBeingGenerated = false;
throw new SQLException(e.toString(), "08S01", e);
}
}
return statusResp;
}
Aggregations