ashish-kumar-sharma commented on a change in pull request #2211: URL: https://github.com/apache/hive/pull/2211#discussion_r626411104
########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java ########## @@ -11978,8 +12027,26 @@ private String getPrimaryKeyConstraintName(String catName, String dbName, String * @throws MetaException */ @Override + @Deprecated public SQLAllTableConstraints getAllTableConstraints(String catName, String dbName, String tblName) throws MetaException,NoSuchObjectException { + AllTableConstraintsRequest request = new AllTableConstraintsRequest(dbName,tblName,catName); + return getAllTableConstraints(request); + } + + /** + * Api to fetch all constraints at once + * @param tableConstraintsRequest request object + * @return all table constraints + * @throws MetaException + * @throws NoSuchObjectException + */ + @Override + public SQLAllTableConstraints getAllTableConstraints(AllTableConstraintsRequest tableConstraintsRequest) + throws MetaException, NoSuchObjectException { + String catName = tableConstraintsRequest.getCatName(); Review comment: done -- 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. 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