deniskuzZ commented on code in PR #6088:
URL: https://github.com/apache/hive/pull/6088#discussion_r2454625460
##########
ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DummyTxnManager.java:
##########
@@ -394,7 +395,9 @@ private List<HiveLockObj> getLockObjects(QueryPlan plan,
Database db,
conf);
if (db != null) {
- locks.add(new HiveLockObj(new HiveLockObject(db.getName(), lockData),
+ String catName = Objects.requireNonNullElse(db.getCatalogName(),
+ HiveUtils.getCurrentCatalogOrDefault(conf));
+ locks.add(new HiveLockObj(new HiveLockObject(catName + "@" +
db.getName(), lockData),
Review Comment:
ATM, there is no support for catalog in HIVE_LOCKS
--
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]