geyanggang commented on code in PR #13021:
URL: https://github.com/apache/gravitino/pull/13021#discussion_r3965386130


##########
catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/client/HiveShimV2.java:
##########
@@ -294,4 +309,18 @@ public void createCatalog(String catalogName, String 
location, String descriptio
   public void close() throws Exception {
     client.close();
   }
+
+  /**
+   * Builds an {@link EnvironmentContext} that tells the metastore not to 
recompute table statistics
+   * during an alter, avoiding an access to the table's storage location.
+   *
+   * @return An environment context with {@code DO_NOT_UPDATE_STATS} set to 
{@code true}.
+   */
+  protected EnvironmentContext doNotUpdateStatsContext() {
+    // Use the literal "true" rather than StatsSetupConst.TRUE, which is not 
present in all
+    // supported
+    // Hive versions (e.g. Hive 3.1.3).

Review Comment:
   Done.



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

Reply via email to