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