wecharyu commented on code in PR #5823: URL: https://github.com/apache/hive/pull/5823#discussion_r2152151002
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java: ########## @@ -408,7 +413,10 @@ public List<Void> run(List<Partition> input) throws Exception { if (runPartitionMetadataUpdate) { if (cascade || retainOnColRemoval) { - parts = msdb.getPartitions(catName, dbname, name, -1); + PartitionsRequest req = new PartitionsRequest(dbname, name); + req.setCatName(catName); + req.setMaxParts((short) -1); Review Comment: We use `HMSHandler#get_partitions_req(req)` to check the limit, set max as -1 will not disable the limit checking. -- 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-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org