dengzhhu653 commented on code in PR #6450:
URL: https://github.com/apache/hive/pull/6450#discussion_r3331712568
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java:
##########
@@ -450,9 +481,12 @@ Partition getPartition(String catName, String dbName,
String tableName,
* @throws MetaException failure reading RDBMS
* @throws NoSuchObjectException this is never thrown.
*/
- boolean doesPartitionExist(String catName, String dbName, String tableName,
+ @Deprecated
+ default boolean doesPartitionExist(String catName, String dbName, String
tableName,
List<FieldSchema> partKeys, List<String> part_vals)
- throws MetaException, NoSuchObjectException;
+ throws MetaException, NoSuchObjectException {
+ return unwrap(TableStore.class).getPartition(new TableName(catName,
dbName, tableName), part_vals, null) != null;
Review Comment:
Since we don't call this method, I mark it as deprecated and will throw
UnsupportedOperationException by default
--
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]