saihemanth-cloudera commented on code in PR #4726:
URL: https://github.com/apache/hive/pull/4726#discussion_r1364352377
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -4129,6 +4129,8 @@ public List<Partition> getPartitions(Table tbl) throws
HiveException {
GetPartitionsPsWithAuthResponse res =
getMSC().listPartitionsWithAuthInfoRequest(req);
tParts = res.getPartitions();
+ } catch (NoSuchObjectException nsoe) {
+ return Lists.newArrayList();
Review Comment:
For NoSuchObjectException, I think it would be ideal to throw the error
message rather than returning an empty result.
--
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]