[ 
https://issues.apache.org/jira/browse/HIVE-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063600#comment-13063600
 ] 

Hudson commented on HIVE-2219:
------------------------------

Integrated in Hive-trunk-h0.21 #821 (See 
[https://builds.apache.org/job/Hive-trunk-h0.21/821/])
    HIVE-2275. Revert HIVE-2219 and apply correct patch to improve the 
efficiency of dropping multiple partitions (Sohan Jain via pauly)

pauly : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1145368
Files : 
* /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java


> Make "alter table drop partition" more efficient
> ------------------------------------------------
>
>                 Key: HIVE-2219
>                 URL: https://issues.apache.org/jira/browse/HIVE-2219
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Sohan Jain
>            Assignee: Sohan Jain
>             Fix For: 0.8.0
>
>         Attachments: HIVE-2219.1.patch, HIVE-2219.2.patch
>
>
> The current function dropTable() that handles dropping multiple partitions is 
> somewhat inefficient.  For each partition you want to drop, it loops through 
> each partition in the table to see if the partition exists.  This is an 
> _O(mn)_ operation, where _m_ is the number of partitions to drop, and _n_ is 
> the number of partitions in the table.  The running time of this function can 
> be improved, which is useful for tables with many partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to