Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.1
-
None
-
None
Description
default database should not be listed when issuing the show database command and the user has no privileges on the object:
0: jdbc:hive2://localhost:10000/default> show current roles; +---------------+--+ | role | +---------------+--+ | analyst_role | +---------------+--+ 1 row selected (0.086 seconds) 0: jdbc:hive2://localhost:10000/default> show grant role analyst_role; +------------------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------------+----------+--+ | database | table | partition | column | principal_name | principal_type | privilege | grant_option | grant_time | grantor | +------------------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------------+----------+--+ | sample_database | | | | analyst_role | ROLE | * | false | 1464280571499000 | -- | +------------------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------------+----------+--+ 1 row selected (0.087 seconds) 0: jdbc:hive2://localhost:10000/default> show databases; +------------------+--+ | database_name | +------------------+--+ | default | | sample_database | +------------------+--+ 2 rows selected (0.137 seconds) 0: jdbc:hive2://localhost:10000/default>