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


##########
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveOperationsBase.java:
##########
@@ -94,6 +94,14 @@ default Table loadHmsTable() throws TException, 
InterruptedException {
   }
 
   default Map<String, String> hmsEnvContext(String metadataLocation) {
+    return expectedMetadataLocationContext(metadataLocation);
+  }
+
+  /**
+   * Returns the environment context that makes HMS apply an alter only if the 
table's current
+   * metadata location is still the given one.
+   */
+  static Map<String, String> expectedMetadataLocationContext(String 
metadataLocation) {

Review Comment:
   Instead of a 2nd name for the same map: hmsEnvContext (line 96) has no 
override, and its only caller is persistTable in this interface. 
   
   Could you make it static in place and call 
`HiveOperationsBase.hmsEnvContext(metadataLocation)` from the rename? 
   That keeps the upstream name, and the diff against upstream shrinks to one 
keyword.



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