Skip to content

Commit 48cc840

Browse files
pzzsmarmbrus
authored andcommitted
[SPARK-6179][SQL] Add token for "SHOW PRINCIPALS role_name" and "SHOW TRANSACTIONS" and "SHOW COMPACTIONS"
[SHOW PRINCIPALS role_name] Lists all roles and users who belong to this role. Only the admin role has privilege for this. [SHOW COMPACTIONS] It returns a list of all tables and partitions currently being compacted or scheduled for compaction when Hive transactions are being used. [SHOW TRANSACTIONS] It is for use by administrators when Hive transactions are being used. It returns a list of all currently open and aborted transactions in the system. Author: DoingDone9 <[email protected]> Author: Zhongshuai Pei <[email protected]> Author: Xu Tingjun <[email protected]> Closes apache#4902 from DoingDone9/SHOW_PRINCIPALS and squashes the following commits: 4add42f [Zhongshuai Pei] for test 311f806 [Zhongshuai Pei] for test 0c7550a [DoingDone9] Update HiveQl.scala c8aeb1c [Xu Tingjun] aa 802261c [DoingDone9] Merge pull request #7 from apache/master d00303b [DoingDone9] Merge pull request #6 from apache/master 98b134f [DoingDone9] Merge pull request #5 from apache/master 161cae3 [DoingDone9] Merge pull request #4 from apache/master c87e8b6 [DoingDone9] Merge pull request #3 from apache/master cb1852d [DoingDone9] Merge pull request #2 from apache/master c3f046f [DoingDone9] Merge pull request #1 from apache/master
1 parent 1f39a61 commit 48cc840

File tree

1 file changed

+3
-0
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive

1 file changed

+3
-0
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ private[hive] object HiveQl {
113113

114114
"TOK_REVOKE",
115115

116+
"TOK_SHOW_COMPACTIONS",
116117
"TOK_SHOW_CREATETABLE",
117118
"TOK_SHOW_GRANT",
118119
"TOK_SHOW_ROLE_GRANT",
120+
"TOK_SHOW_ROLE_PRINCIPALS",
119121
"TOK_SHOW_ROLES",
120122
"TOK_SHOW_SET_ROLE",
121123
"TOK_SHOW_TABLESTATUS",
122124
"TOK_SHOW_TBLPROPERTIES",
125+
"TOK_SHOW_TRANSACTIONS",
123126
"TOK_SHOWCOLUMNS",
124127
"TOK_SHOWDATABASES",
125128
"TOK_SHOWFUNCTIONS",

0 commit comments

Comments
 (0)