[ 
https://issues.apache.org/jira/browse/HIVE-22174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Miklos Gergely updated HIVE-22174:
----------------------------------
    Description: There are many complex drop partition and drop partitions 
operations in Hive.java, most of them are not used by anyone inside or outside 
of Hive. The unused codes should be removed, and the remaining code should be 
as simple as possible, calling dropPartition(s) operation at the metastore 
client. Also the AlterTableDropPartitionDesc class should not be exposed here.  
(was: AlterTableAddPartitionDesc should be immutable, like the rest of the desc 
classes. This can not be done 100% right now, as it requires the refactoring of 
the ImportSemanticAnalyzer, so the task will be finished only then.

Add Partition logic should be moved from Hive.java to 
AlterTableAddPartitionOperation.java, only the metastore calls should remain in 
Hive.java.)

> Clean up Drop Partition
> -----------------------
>
>                 Key: HIVE-22174
>                 URL: https://issues.apache.org/jira/browse/HIVE-22174
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Miklos Gergely
>            Assignee: Miklos Gergely
>            Priority: Major
>              Labels: pull-request-available, refactor-ddl
>             Fix For: 4.0.0
>
>         Attachments: HIVE-22174.01.patch
>
>
> There are many complex drop partition and drop partitions operations in 
> Hive.java, most of them are not used by anyone inside or outside of Hive. The 
> unused codes should be removed, and the remaining code should be as simple as 
> possible, calling dropPartition(s) operation at the metastore client. Also 
> the AlterTableDropPartitionDesc class should not be exposed here.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to