// In Hive 13, CLIService.getOperationStatus returns OperationStatus.
// Since we use Hive 13 for dev, we need the following workaround to get Hive 12 working.
Class cliServiceClass = getCliService().getClass();
Method m = cliServiceClass.getMethod("getOperationStatus", OperationHandle.class);
OperationState operationState = (OperationState) m.invoke(getCliService(), operationHandle);
return new QueryStatus(QueryStatus.OpStatus.valueOf(operationState.toString()), operationHandle.hasResultSet());
} catch (InvocationTargetException e) {
throw Throwables.propagate(e);
} catch (NoSuchMethodException e) {
throw Throwables.propagate(e);
} catch (IllegalAccessException e) {