[ 
https://issues.apache.org/jira/browse/HIVE-27150?focusedWorklogId=853290&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-853290
 ]

ASF GitHub Bot logged work on HIVE-27150:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Mar/23 05:37
            Start Date: 28/Mar/23 05:37
    Worklog Time Spent: 10m 
      Work Description: saihemanth-cloudera commented on code in PR #4123:
URL: https://github.com/apache/hive/pull/4123#discussion_r1150050461


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java:
##########
@@ -3101,6 +3100,22 @@ public boolean dropPartition(String catName, String 
dbName, String tableName,
     return success;
   }
 
+  @Override
+  public boolean dropPartition(String catName, String dbName, String 
tableName, String partName)
+      throws MetaException, NoSuchObjectException, InvalidObjectException, 
InvalidInputException {
+    boolean success = false;
+    try {
+      openTransaction();
+      dropPartitionsInternal(catName, dbName, tableName, 
Arrays.asList(partName), true, true);

Review Comment:
   cc @VenuReddy2103 





Issue Time Tracking
-------------------

    Worklog Id:     (was: 853290)
    Time Spent: 1.5h  (was: 1h 20m)

> Drop single partition can also support direct sql
> -------------------------------------------------
>
>                 Key: HIVE-27150
>                 URL: https://issues.apache.org/jira/browse/HIVE-27150
>             Project: Hive
>          Issue Type: Improvement
>          Components: Hive
>            Reporter: Wechar
>            Assignee: Wechar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> *Background:*
> [HIVE-6980|https://issues.apache.org/jira/browse/HIVE-6980] supports direct 
> sql for drop_partitions, we can reuse this huge improvement in drop_partition.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to