----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22635/#review46170 -----------------------------------------------------------
sentry-binding/sentry-binding-hive/src/main/java/org/apache/hadoop/hive/ql/exec/SentryGrantRevokeTask.java <https://reviews.apache.org/r/22635/#comment81433> So toSentryAction() transforms privilegeType.getName() to a Sentry access constant. There might be certain PrivilegeTypes applicable to Db only.. (for eg. SHOW_DATABASE, ALTER_METADATA.. ) which might not be applicable for Tables and we might want a different mapping.. hence the new method.. - Arun Suresh On June 19, 2014, 1:04 a.m., Arun Suresh wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/22635/ > ----------------------------------------------------------- > > (Updated June 19, 2014, 1:04 a.m.) > > > Review request for sentry, Jarek Cecho, Prasad Mujumdar, and Sravya > Tirukkovalur. > > > Repository: sentry > > > Description > ------- > > Fixes for : > - https://issues.apache.org/jira/browse/SENTRY-303 > - https://issues.apache.org/jira/browse/SENTRY-285 > > This patch depends on patch for SENTRY-281 > (https://issues.apache.org/jira/browse/SENTRY-281) > > > Diffs > ----- > > > sentry-binding/sentry-binding-hive/src/main/java/org/apache/hadoop/hive/ql/exec/SentryGrantRevokeTask.java > f29078a > > sentry-policy/sentry-policy-db/src/main/java/org/apache/sentry/policy/db/DBWildcardPrivilege.java > d599de9 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > 56fc3df > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java > 9e2c200 > > sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServerWithoutKerberos.java > 9f89302 > > sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceIntegration.java > f0bf127 > > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDatabaseProvider.java > 27ef9ce > > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestPrivilegesAtDatabaseScope.java > ff73c0a > > Diff: https://reviews.apache.org/r/22635/diff/ > > > Testing > ------- > > This patch passes all unit and e2e tests > > > Thanks, > > Arun Suresh > >
