[ 
https://issues.apache.org/jira/browse/HIVE-29244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18057196#comment-18057196
 ] 

Neeraj Khatri commented on HIVE-29244:
--------------------------------------

Hi [~zhangbutao] 

I wanted to clarify something.
 # Did you mean we need to support the below as I think SHOW LOCKS dbName does 
not show locks on database named dbname but instead understands that it is a 
table. 
{quote}SHOW LOCKS DATABASE dbName;
SHOW LOCKS DATABASE catName.dbName;{quote}
 # Do we want to support the following scenario ?
{quote}SHOW LOCKS tablename;
SHOW LOCKS dbname.tablename;
SHOW LOCKS catalogname.dbname.tablename;{quote}

Let me know as I am mostly done with my changes on this. Once I am ready, I 
will raise a PR for this if that's okay

CC:- [~dkuzmenko] 

> Add catalog field into ShowLocksRequest
> ---------------------------------------
>
>                 Key: HIVE-29244
>                 URL: https://issues.apache.org/jira/browse/HIVE-29244
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Butao Zhang
>            Priority: Major
>
> [https://github.com/apache/hive/blob/744a0d6869e3a93f5d1f9afc151677ab432709d1/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift#L1292-L1297]
>  
> At present, {*}show locks dbName{*}could only get result from default hive 
> catalog. We need to add catalog field into ShowLocksRequest, so that we can 
> get locks info from different catalogs by new syntax {*}show locks 
> catName.dbName{*}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to