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


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/PartitionIterable.java:
##########
@@ -99,7 +101,18 @@ private void getNextBatch() {
           batchCounter++;
         }
         try {
-          batchIter = db.getPartitionsByNames(table, nameBatch, 
getColStats).iterator();
+          if (!isAuthRequired) {
+            batchIter = db.getPartitionsByNames(table, nameBatch, 
getColStats).iterator();
+          } else {
+            GetPartitionsPsWithAuthRequest req = new 
GetPartitionsPsWithAuthRequest();

Review Comment:
   Can you make this as Global variable GetPartitionsPsWithAuthRequest and reuse



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