[
https://issues.apache.org/jira/browse/HIVE-18109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16261956#comment-16261956
]
Sergey Shelukhin commented on HIVE-18109:
-----------------------------------------
The definition of show locks is:
{noformat}
| KW_SHOW KW_LOCKS
(
(KW_DATABASE|KW_SCHEMA) => (KW_DATABASE|KW_SCHEMA) (dbName=Identifier)
(isExtended=KW_EXTENDED)? -> ^(TOK_SHOWDBLOCKS $dbName $isExtended?)
|
(parttype=partTypeExpr)? (isExtended=KW_EXTENDED)? -> ^(TOK_SHOWLOCKS
$parttype? $isExtended?)
)
{noformat}
I think the problem is dbName=Identifier here; because
{noformat}
identifier
:
Identifier
| nonReserved -> Identifier[$nonReserved.start]
;
{noformat}
but Identifier is just some letters and numbers and stuff.
> Don't reserve pool and default as keywords
> ------------------------------------------
>
> Key: HIVE-18109
> URL: https://issues.apache.org/jira/browse/HIVE-18109
> Project: Hive
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Ashutosh Chauhan
> Assignee: Sergey Shelukhin
>
> HIVE-17902 broke this
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)