dengzhhu653 commented on code in PR #5851:
URL: https://github.com/apache/hive/pull/5851#discussion_r2660181969


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java:
##########
@@ -335,6 +336,17 @@ void createTable(Table tbl) throws InvalidObjectException,
   boolean dropTable(String catalogName, String dbName, String tableName)
       throws MetaException, NoSuchObjectException, InvalidObjectException, 
InvalidInputException;
 
+  /**
+   * Drop all partitions from the table, and return the partition's location 
that not a child of baseLocationToNotShow,
+   * when the baseLocationToNotShow is not null.
+   * @param table the table to drop partitions from
+   * @param baseLocationToNotShow Partition locations which are child of this 
path are omitted
+   * @return list of partition locations outside baseLocationToNotShow
+   * @throws MetaException something went wrong, usually in the RDBMS or 
storage
+   * @throws InvalidInputException unable to drop all partitions due to the 
invalid input
+   */
+  List<String> dropAllPartitionsAndGetLocations(TableName table, String 
baseLocationToNotShow, AtomicReference<String> message)
+      throws MetaException, InvalidInputException, NoSuchObjectException, 
InvalidObjectException;

Review Comment:
   ack



##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java:
##########
@@ -335,6 +336,17 @@ void createTable(Table tbl) throws InvalidObjectException,
   boolean dropTable(String catalogName, String dbName, String tableName)
       throws MetaException, NoSuchObjectException, InvalidObjectException, 
InvalidInputException;
 
+  /**
+   * Drop all partitions from the table, and return the partition's location 
that not a child of baseLocationToNotShow,
+   * when the baseLocationToNotShow is not null.
+   * @param table the table to drop partitions from
+   * @param baseLocationToNotShow Partition locations which are child of this 
path are omitted

Review Comment:
   ack



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to