dengzhhu653 commented on code in PR #6287:
URL: https://github.com/apache/hive/pull/6287#discussion_r2776613197
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/handler/AddPartitionsHandler.java:
##########
@@ -186,7 +187,12 @@ protected AddPartitionsResult execute() throws TException,
IOException {
new long[0], new BitSet(), writeId);
validWriteIds = validWriteIdList.toString();
}
- ((HMSHandler)handler).updatePartitonColStatsInternal(table, null,
partColStats, validWriteIds, writeId);
+ SetPartitionsStatsRequest setPartitionsStatsRequest =
+ new SetPartitionsStatsRequest(Arrays.asList(partColStats));
+ setPartitionsStatsRequest.setWriteId(writeId);
+ setPartitionsStatsRequest.setValidWriteIdList(validWriteIds);
+ setPartitionsStatsRequest.setNeedMerge(false);
+
handler.update_partition_column_statistics_req(setPartitionsStatsRequest);
}
Review Comment:
This happens in the same thread as the AddPartitionsHandler, it's submitted
via `MoreExecutors.newDirectExecutorService()`
--
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]