pkumarsinha commented on code in PR #4807:
URL: https://github.com/apache/hive/pull/4807#discussion_r1389397068


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -4204,9 +4223,11 @@ public Set<Partition> getAllPartitionsInBatches(Table 
tbl, int batchSize, int de
       public Void execute(int size) throws HiveException {
         try {
           result.clear();
-          new PartitionIterable(Hive.get(), tbl, null, 
size).forEach(result::add);
+          new PartitionIterable(Hive.get(), tbl, partialPartitionSpec, size, 
isAuthRequired, userName,
+                  groupNames).forEach(result::add);
           return null;
         } catch (HiveException e) {
+          LOG.error("Unable to get Partition List", e);

Review Comment:
   In fact, you can get rid of entire try catch as anyway method signature has 
"throws HiveException"



-- 
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]

Reply via email to