adesh-rao commented on a change in pull request #2153: URL: https://github.com/apache/hive/pull/2153#discussion_r617206197
########## File path: standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java ########## @@ -2381,82 +2381,141 @@ public Partition getPartitionWithAuthInfo(String catName, String dbName, String return deepCopy(FilterUtils.filterPartitionIfEnabled(isClientFilterEnabled, filterHook, p)); } + /** + * @deprecated use getTable(GetTableRequest getTableRequest) + * @param dbname + * @param name + * @return + * @throws TException + */ @Override + @Deprecated public Table getTable(String dbname, String name) throws TException { - return getTable(getDefaultCatalog(conf), dbname, name); + GetTableRequest req = new GetTableRequest(dbname, name); + req.setCatName(getDefaultCatalog(conf)); + return getTable(req); } + /** + * @deprecated use getTable(GetTableRequest getTableRequest) + * @param dbname + * @param name + * @param getColumnStats + * get the column stats, if available, when true + * @param engine engine sending the request + * @return + * @throws TException + */ @Override + @Deprecated public Table getTable(String dbname, String name, boolean getColumnStats, String engine) throws TException { - return getTable(getDefaultCatalog(conf), dbname, name, getColumnStats, engine); + GetTableRequest req = new GetTableRequest(dbname, name); + req.setCatName(getDefaultCatalog(conf)); + req.setGetColumnStats(getColumnStats); + if (getColumnStats) { Review comment: There is no equivalent condition in older code. Why is this done here? ########## File path: standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java ########## @@ -3304,14 +3304,20 @@ public Table getTable(String catName, String dbName, String tableName, String validWriteIdList) throws TException { throw new UnsupportedOperationException(); } - + Review comment: nit: remove indent -- 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