deniskuzZ commented on code in PR #4785: URL: https://github.com/apache/hive/pull/4785#discussion_r1381674496
########## standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: ########## @@ -1933,6 +1934,16 @@ public List<Partition> dropPartitions(String catName, String dbName, String tblN PartitionDropOptions options) throws TException { RequestPartsSpec rps = new RequestPartsSpec(); List<DropPartitionsExpr> exprs = new ArrayList<>(partExprs.size()); + Table table = getTable(catName, dbName, tblName); + HiveMetaHook hook = getHook(table); + EnvironmentContext context = new EnvironmentContext(); + if (hook != null) { + hook.preDropPartitions(table, context, partExprs); + } + if (context.getProperties() != null && context.getProperties().containsKey(SKIP_DROP_PARTITION) && Review Comment: no need to check for contains -- 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