deniskuzZ commented on code in PR #6961:
URL: https://github.com/apache/hive/pull/6961#discussion_r4679611915
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMetaStoreClientWithLocalCache.java:
##########
@@ -407,7 +409,7 @@ public GetPartitionsByNamesResult
getPartitionsByNames(GetPartitionsByNamesReque
if (isCacheEnabledAndInitialized()) {
String dbName = parseDbName(req.getDb_name(), conf)[1];
TableWatermark watermark = new TableWatermark(
- req.getValidWriteIdList(), getTable(dbName,
req.getTbl_name()).getId());
+ req.getValidWriteIdList(), getTableForWatermark(null, dbName,
req.getTbl_name()).getId());
Review Comment:
parseDbName already returns the catalog from @cat#db. Could we pass
catAndDb[0] instead of null? With null the watermark looks up the table in the
default catalog even when the request names another one.
--
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]