You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "rbalamohan (via GitHub)" <gi...@apache.org> on 2023/03/30 02:18:36 UTC

[GitHub] [hive] rbalamohan commented on a diff in pull request #4161: HIVE-22383: Invoking alterPartitions once after as a result of MoveTask

rbalamohan commented on code in PR #4161:
URL: https://github.com/apache/hive/pull/4161#discussion_r1152661303


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -2951,9 +2951,11 @@ private void setStatsPropAndAlterPartitions(boolean resetStatistics, Table tbl,
       validWriteIdList = tableSnapshot.getValidWriteIdList();
       writeId = tableSnapshot.getWriteId();
     }
-    getSynchronizedMSC().alter_partitions(tbl.getCatName(), tbl.getDbName(), tbl.getTableName(),
-            partitions.stream().map(Partition::getTPartition).collect(Collectors.toList()),
-            ec, validWriteIdList, writeId);
+    if (!conf.getBoolVar(ConfVars.HIVESTATSAUTOGATHER)){

Review Comment:
   Should this be in the starting of the method itself?



-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org