armitage420 commented on code in PR #5539: URL: https://github.com/apache/hive/pull/5539#discussion_r1915363102
########## ql/src/java/org/apache/hadoop/hive/ql/metadata/PartitionIterable.java: ########## @@ -99,12 +104,16 @@ private void getNextBatch() { batchCounter++; } try { - if (isAuthRequired) { - batchIter = db.getPartitionsAuthByNames(table, nameBatch, userName, groupNames).iterator(); - } else { - batchIter = db.getPartitionsByNames(table, nameBatch, getColStats).iterator(); + if(getPartitionsRequest == null){ + if (isAuthRequired) { + batchIter = db.getPartitionsAuthByNames(table, nameBatch, userName, groupNames).iterator(); + } else { + batchIter = db.getPartitionsByNames(table, nameBatch, getColStats).iterator(); + } + }else { + batchIter = db.getPartitionsWithSpecsByNames(table, nameBatch, getPartitionsRequest).iterator(); Review Comment: No, it does not. We need to make changes in the API itself/open a new API for withAuth in HMS for the same. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org