dengzhhu653 commented on code in PR #5578:
URL: https://github.com/apache/hive/pull/5578#discussion_r1961163407
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java:
##########
@@ -2201,6 +2192,29 @@ private static void
updateTableColumnsStatsInternal(Configuration conf, ColumnSt
return succ;
}
+ @Override public boolean deleteTableColumnStatistics(String catName, String
dbName, String tblName, List<String> colNames, String engine)
+ throws NoSuchObjectException, MetaException, InvalidObjectException,
InvalidInputException {
+ if (!CacheUtils.HIVE_ENGINE.equals(engine)) {
+ throw new RuntimeException("CachedStore can only be enabled for Hive
engine");
+ }
+ boolean succ = rawStore.deleteTableColumnStatistics(catName, dbName,
tblName, colNames, engine);
+ // in case of event based cache update, cache is updated during commit txn
+ if (succ && !canUseEvents) {
+ catName = normalizeIdentifier(catName);
+ dbName = normalizeIdentifier(dbName);
+ tblName = normalizeIdentifier(tblName);
+ if (!shouldCacheTable(catName, dbName, tblName)) {
+ return succ;
+ }
+ if (colNames != null) {
Review Comment:
take care of the case when `colNames` is null
--
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]