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

Rajkumar Singh commented on HIVE-20568:
---------------------------------------

Hi [~cstenac], yes that's a right assumption, it is not only a cosmetic fix but 
indeed resolves the problem when Ranger skips the auth check if dbname has 
special char.

> There is no need to convert the dbname to pattern while pulling tablemeta
> -------------------------------------------------------------------------
>
>                 Key: HIVE-20568
>                 URL: https://issues.apache.org/jira/browse/HIVE-20568
>             Project: Hive
>          Issue Type: Improvement
>          Components: Hive
>    Affects Versions: 0.4.0
>         Environment: Hive-4,Java-8
>            Reporter: Rajkumar Singh
>            Assignee: Rajkumar Singh
>            Priority: Minor
>             Fix For: 4.0.0
>
>         Attachments: HIVE-20568.patch
>
>
> there is no need to convert the dbname to pattern, dbNamePattern is just a 
> dbName which we are passing to getTableMeta
> https://github.com/apache/hive/blob/master/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java#L117



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to