-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37952/
-----------------------------------------------------------
Review request for sentry, Colin Ma, Dapeng Sun, and Sravya Tirukkovalur.
Repository: sentry
Description
-------
use column level privilege,
{code}
0: jdbc:hive2://anneyu-cdh55-1.vpc.cloudera.c> show tables in test_db like
'test_tb';
+-----------+--+
| tab_name |
+-----------+--+
| test_tb |
+-----------+--+
show table extended in test_db like 'test_tb';
Error: Error while compiling statement: FAILED: SemanticException No valid
privileges
Required privileges for this query:
Server=server1->Db=test_db->Table=test_tb->action=insert;Server=server1->Db=test_db->Table=test_tb->action=select;
(state=42000,code=40000)
{code}
We want to let user see their column info.such as,
{noformat}
columns:struct columns { string s, i32 i}
{noformat}
Diffs
-----
sentry-binding/sentry-binding-hive/pom.xml fabfbbc
sentry-binding/sentry-binding-hive/src/main/java/org/apache/hadoop/hive/ql/exec/SentryFilterDDLTask.java
d47ca3b
sentry-binding/sentry-binding-hive/src/main/java/org/apache/hadoop/hive/ql/metadata/formatting/SentryFilterJsonMetaDataFormatter.java
PRE-CREATION
sentry-binding/sentry-binding-hive/src/main/java/org/apache/hadoop/hive/ql/metadata/formatting/SentryFilterTextMetaDataFormatter.java
PRE-CREATION
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java
62410c7
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java
e721555
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java
718a736
Diff: https://reviews.apache.org/r/37952/diff/
Testing
-------
Run through the local environment
Thanks,
shen guoquan