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


##########
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java:
##########
@@ -2929,6 +2931,7 @@ public static List<LockComponent> 
makeLockComponents(Set<WriteEntity> outputs, S
       Table t = null;
       switch (input.getType()) {
         case DATABASE:
+          
compBuilder.setCatName(Optional.ofNullable(input.getDatabase().getCatalogName()).orElse(currentCatalog));

Review Comment:
   what i meant, just extract the get logic into `getCatalogName` helper 
method, but i think local var should be sufficient
   ````
   var catalogName = 
Optional.ofNullable(input.getDatabase().getCatalogName()).orElse(currentCatalog);
   compBuilder.setCatName(catalogName)
   ````
   
   



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