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

Peter Vary commented on HIVE-19783:
-----------------------------------

Added review board link: [https://reviews.apache.org/r/67485/]

The patch does the following:
 * Adds a new getPartitionLocations method to the RawStore interface.
 ** Implements getPartitionLocations in ObjectStore using JDQL.
 ** Implements getPartitionLocations in CachedObjectStore by calling 
rawStore.getPartitionLocations (so big tables with many partitions will not 
cause problem even if they cannot fit into memory)
 * Modifies dropPartitionsAndGetLocations:
 ** Instead of querying every partition data. Query only the locations using 
the new interface method
 ** Removes partKeys parameter which become unnecessary

[~vihangk1]: Could you please review?

Thanks,

Peter

> Retrieve only locations in HiveMetaStore.dropPartitionsAndGetLocations
> ----------------------------------------------------------------------
>
>                 Key: HIVE-19783
>                 URL: https://issues.apache.org/jira/browse/HIVE-19783
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>            Priority: Major
>         Attachments: HIVE-19783.2.patch, HIVE-19783.patch
>
>
> Optimize further the dropTable command.
> Currently {{HiveMetaStore.dropPartitionsAndGetLocations}} retrieves the whole 
> partition object, but we need only the locations instead.
> Create a RawStore method to retrieve only the locations.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to