----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/66800/ -----------------------------------------------------------
Review request for hive, Alexander Kolbasov, Alan Gates, Marta Kuczora, Adam Szita, and Vihang Karajgaonkar. Bugs: HIVE-6980 https://issues.apache.org/jira/browse/HIVE-6980 Repository: hive-git Description ------- First version of the patch. Splits getPartitionsViaSqlFilterInternal to: getPartitionIdsViaSqlFilter - which returns the partition ids getPartitionsFromPartitionIds - which returns the partition data for the partitions Creates dropPartitionsByPartitionIds which drops the partitions by directSQL commands Creates a dropPartitionsViaSqlFilter using getPartitionIdsViaSqlFilter and dropPartitionsByPartitionIds. Modifies the ObjectStore to drop partitions with directsql if possible. Diffs ----- standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java 997f5fd standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java 184ecb6 Diff: https://reviews.apache.org/r/66800/diff/1/ Testing ------- Run the TestDropPartition tests, also checked the database manually, that no object left in the database Thanks, Peter Vary