PREHOOK: query: create table test_user (user string, `group` string) PREHOOK: type: CREATETABLE POSTHOOK: query: create table test_user (user string, `group` string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@test_user PREHOOK: query: grant select on table test_user to user hive_test PREHOOK: type: GRANT_PRIVILEGE PREHOOK: Output: default@test_user POSTHOOK: query: grant select on table test_user to user hive_test POSTHOOK: type: GRANT_PRIVILEGE POSTHOOK: Output: default@test_user PREHOOK: query: explain select user from test_user PREHOOK: type: QUERY POSTHOOK: query: explain select user from test_user POSTHOOK: type: QUERY ABSTRACT SYNTAX TREE: (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME test_user))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_TABLE_OR_COL user))))) STAGE DEPENDENCIES: Stage-1 is a root stage Stage-0 is a root stage STAGE PLANS: Stage: Stage-1 Map Reduce Alias -> Map Operator Tree: test_user TableScan alias: test_user Select Operator expressions: expr: user type: string outputColumnNames: _col0 File Output Operator compressed: false GlobalTableId: 0 table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Stage: Stage-0 Fetch Operator limit: -1 PREHOOK: query: show grant user hive_test on table test_user PREHOOK: type: SHOW_GRANT POSTHOOK: query: show grant user hive_test on table test_user POSTHOOK: type: SHOW_GRANT database default table test_user principalName hive_test principalType USER privilege Select grantTime 1298925820 grantor hive_test_user PREHOOK: query: drop table test_user PREHOOK: type: DROPTABLE PREHOOK: Input: default@test_user PREHOOK: Output: default@test_user POSTHOOK: query: drop table test_user POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@test_user POSTHOOK: Output: default@test_user PREHOOK: query: create table test_user (role string, `group` string) PREHOOK: type: CREATETABLE POSTHOOK: query: create table test_user (role string, `group` string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@test_user PREHOOK: query: grant select on table test_user to user hive_test PREHOOK: type: GRANT_PRIVILEGE PREHOOK: Output: default@test_user POSTHOOK: query: grant select on table test_user to user hive_test POSTHOOK: type: GRANT_PRIVILEGE POSTHOOK: Output: default@test_user PREHOOK: query: explain select role from test_user PREHOOK: type: QUERY POSTHOOK: query: explain select role from test_user POSTHOOK: type: QUERY ABSTRACT SYNTAX TREE: (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME test_user))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_TABLE_OR_COL role))))) STAGE DEPENDENCIES: Stage-1 is a root stage Stage-0 is a root stage STAGE PLANS: Stage: Stage-1 Map Reduce Alias -> Map Operator Tree: test_user TableScan alias: test_user Select Operator expressions: expr: role type: string outputColumnNames: _col0 File Output Operator compressed: false GlobalTableId: 0 table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Stage: Stage-0 Fetch Operator limit: -1 PREHOOK: query: show grant user hive_test on table test_user PREHOOK: type: SHOW_GRANT POSTHOOK: query: show grant user hive_test on table test_user POSTHOOK: type: SHOW_GRANT database default table test_user principalName hive_test principalType USER privilege Select grantTime 1298925821 grantor hive_test_user PREHOOK: query: drop table test_user PREHOOK: type: DROPTABLE PREHOOK: Input: default@test_user PREHOOK: Output: default@test_user POSTHOOK: query: drop table test_user POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@test_user POSTHOOK: Output: default@test_user