Neer393 commented on code in PR #5917:
URL: https://github.com/apache/hive/pull/5917#discussion_r2180332563
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/ScheduledQueryAnalyzer.java:
##########
@@ -102,7 +115,8 @@ private ScheduledQuery
fillScheduledQuery(ScheduledQueryMaintenanceRequestType
schqStored.setNextExecutionIsSet(false);
return composeOverlayObject(schqChanges, schqStored);
} catch (TException e) {
- throw new SemanticException("unable to get Scheduled query" + e);
+ LOG.error("Unable to find Scheduled query: " +
schqChanges.getScheduleKey().getScheduleName(), e);
Review Comment:
```
} catch (NoSuchObjectException e) {
LOG.error("Unable to find Scheduled query: " +
schqChanges.getScheduleKey().getScheduleName(), e);
if (throwException) {
throw new
SemanticException(ErrorMsg.INVALID_SCHEDULED_QUERY.getMsg(schqChanges.getScheduleKey().getScheduleName()),
e);
}
return null;
} catch (TException e) {
throw new RuntimeException(e);
}
```
You mean something like this ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]