deniskuzZ commented on code in PR #5223:
URL: https://github.com/apache/hive/pull/5223#discussion_r2264885826


##########
standalone-metastore/metastore-client/src/main/java/org/apache/hadoop/hive/metastore/client/HookEnabledMetaStoreClient.java:
##########
@@ -325,6 +327,21 @@ public List<Partition> dropPartitions(String catName, 
String dbName, String tblN
     return delegate.dropPartitions(catName, dbName, tblName, partExprs, 
options, context);
   }
 
+  @Override
+  public List<Partition> dropPartitions(TableName tableName,

Review Comment:
   can we reuse it in the above legacy method? like
   ````
   RequestPartsSpec rps = new RequestPartsSpec();
   List<DropPartitionsExpr> exprs = new ArrayList<>(partExprs.size());
   
   for (Pair<Integer, byte[]> partExpr : partExprs) {
     DropPartitionsExpr dpe = new DropPartitionsExpr();
     dpe.setExpr(partExpr.getRight());
     dpe.setPartArchiveLevel(partExpr.getLeft());
     exprs.add(dpe);
   }
   rps.setExprs(exprs);
   return dropPartitions(new TableName(catName, dbName, tblName), rps, options, 
context);
   ````



-- 
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

Reply via email to