[
https://issues.apache.org/jira/browse/HIVE-25032?focusedWorklogId=847764&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-847764
]
ASF GitHub Bot logged work on HIVE-25032:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Feb/23 08:53
Start Date: 27/Feb/23 08:53
Worklog Time Spent: 10m
Work Description: dengzhhu653 commented on code in PR #4028:
URL: https://github.com/apache/hive/pull/4028#discussion_r1118441614
##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java:
##########
@@ -2174,6 +2174,22 @@ List<Partition> dropPartitions(String catName, String
dbName, String tblName,
PartitionDropOptions options)
throws NoSuchObjectException, MetaException, TException;
+ /**
+ * @param catName catalog name
+ * @param dbName Name of the database
+ * @param tblName Name of the table
+ * @param partNames Arrays of partitions to drop
+ * @param options Boolean options for dropping partitions
+ * @return List of Partitions dropped
+ * @throws NoSuchObjectException No partition matches the expression(s), and
ifExists was false.
+ * @throws MetaException error access the RDBMS or storage.
+ * @throws TException On failure
+ */
+ List<Partition> dropPartitions(String catName, String dbName, String tblName,
+ String[] partNames,
Review Comment:
Thanks @saihemanth-cloudera for the comment. Introduce `List<Partition>
dropPartitions(DropPartitionsRequest req, PartitionDropOptions options)`
instead, support HMS deleting partitions in batch by the provided partition
names.
Issue Time Tracking
-------------------
Worklog Id: (was: 847764)
Time Spent: 2h 50m (was: 2h 40m)
> Optimise PartitionManagementTask
> --------------------------------
>
> Key: HIVE-25032
> URL: https://issues.apache.org/jira/browse/HIVE-25032
> Project: Hive
> Issue Type: Improvement
> Reporter: Rajesh Balamohan
> Assignee: Zhihua Deng
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> When large number of tables and dbs are present, it takes lot of time to
> iterate over all tables in PartitionManagementTask.
> If table parameters are populated in TableMeta, it will cut down lots of
> interactions with HMS in PartitionManagementTask.
>
> Code Ref:
> [https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PartitionManagementTask.java#L126]
>
> [https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PartitionManagementTask.java#L132]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)