Files
impala/testdata/workloads/functional-query/queries/QueryTest
Lenni Kuff 9e43e4b5e8 [CDH5] Add support for SHOW GRANT ROLE <roleName> [ON <privilege spec>]
Adds support for displaying all or a subset of the privileges granted to a role. Users
have privileges to execute this statement if they are already granted the role or if
they are an admin user on the Sentry Policy Service. The output includes:
* The target scope of the privilege
* The privilege level
* The target names in the object hierarchy
* Whether the privilege was granted using WITH GRANT OPTION
* The create time of the privilege

Examples:
-- Show all grants in role1
SHOW GRANT ROLE role1

-- Shows all grants in role1 on the database foo
SHOW GRANT ROLE role1 on DATABASE foo

Output looks like:
+----------+------------+-------+-----+-----------+--------------+-------------------------------+
| scope    | database   | table | uri | privilege | grant_option | create_time                   |
+----------+------------+-------+-----+-----------+--------------+-------------------------------+
| DATABASE | functional |       |     | ALL       | false        | Fri, Sep 19 2014 16:13:40.999 |
+----------+------------+-------+-----+-----------+--------------+-------------------------------+

Change-Id: I8ef1b87a4c22c8fba4228012668033d7f9d06fcb
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4389
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: jenkins
2014-09-19 21:08:05 -07:00
..
2014-08-27 13:41:42 -07:00
2014-09-13 00:19:20 -07:00
2014-05-16 22:26:11 -07:00
2014-06-24 02:14:27 -07:00
2014-06-11 03:10:11 -07:00
2014-06-11 03:10:11 -07:00
2014-06-11 03:10:11 -07:00
2014-06-11 03:10:11 -07:00
2014-08-17 12:44:44 -07:00
2014-06-24 02:14:27 -07:00
2014-09-13 00:17:33 -07:00
2014-03-17 17:30:15 -07:00
2014-06-11 03:10:11 -07:00
2014-06-24 02:14:27 -07:00
2014-09-11 08:47:23 -07:00
2014-06-24 02:14:27 -07:00
2014-06-24 02:14:27 -07:00
2014-06-26 22:17:56 -07:00
2014-01-08 10:48:09 -08:00
2014-06-20 13:35:10 -07:00
2014-06-24 02:14:27 -07:00