deniskuzZ commented on code in PR #6081:
URL: https://github.com/apache/hive/pull/6081#discussion_r2416141229


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java:
##########
@@ -286,6 +306,23 @@ private void getCredentialsFromSuppliers(BaseWork work, 
Set<TableDesc> tables, D
     if (!UserGroupInformation.isSecurityEnabled()){
       return;
     }
+    Map<String, PartitionDesc> partitions = ((MapWork) 
work).getAliasToPartnInfo();
+
+    // We don't need to iterate on all partitions, and check the same 
TableDesc.
+    PartitionDesc partition = 
partitions.values().stream().findFirst().orElse(null);

Review Comment:
   could there be a partition outside of a tables set?



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