dengzhhu653 commented on code in PR #6126:
URL: https://github.com/apache/hive/pull/6126#discussion_r2437966954
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java:
##########
@@ -209,51 +211,45 @@ private void initSharedCache(Configuration conf) {
return sharedCache;
}
- private static ColumnStatistics updateStatsForAlterPart(RawStore rawStore,
Table before, String catalogName,
+ private static void updateStatsForAlterPart(RawStore rawStore, Table before,
String catalogName,
String dbName, String tableName, Partition part) throws Exception {
List<String> deletedCols = new ArrayList<>();
- List<ColumnStatistics> multiColumnStats = HiveAlterHandler
- .updateOrGetPartitionColumnStats(rawStore, catalogName, dbName,
tableName, part.getValues(),
- part.getSd().getCols(), before, part, null, deletedCols);
- if (multiColumnStats.size() > 1) {
- throw new RuntimeException("CachedStore can only be enabled for Hive
engine");
+ // if this is the table rename, change the cache
Review Comment:
This is triggered by alter table event, we might see a table rename here
--
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]