wecharyu opened a new pull request, #5223: URL: https://github.com/apache/hive/pull/5223
### What changes were proposed in this pull request? In thrift api definition, HMS support to drop partitions by both partition names and expressions. But current api in `IMetaStoreClient` only support drop partitions by expressions, we should add new api to support drop partitions by names. ```java // IMetaStoreClient.java List<Partition> dropPartitions(String catName, String dbName, String tblName, RequestPartsSpec partsSpec, PartitionDropOptions options) throws NoSuchObjectException, MetaException, TException; ``` ### Why are the changes needed? To improve the `dropPartitions` function. ### Does this PR introduce _any_ user-facing change? Yes, user can use the new api to drop partitions by names. ### Is the change a dependency upgrade? No. ### How was this patch tested? Add unit test: ```bash mvn test -Dtest=org.apache.hadoop.hive.ql.metadata.TestHive -pl :hive-exec ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org