Adam Holley has uploaded a new patch set (#4). ( http://gerrit.cloudera.org:8080/9805 )
Change subject: IMPALA-6649: Add fine-grained ALTER privilege ...................................................................... IMPALA-6649: Add fine-grained ALTER privilege Updated support and analysis files to provide ALTER privilege. Example statements: GRANT ALTER on SERVER svr TO ROLE testrole; GRANT ALTER on DATABASE db TO ROLE testrole; GRANT ALTER on TABLE tbl TO ROLE testrole; REVOKE ALTER on SERVER svr FROM ROLE testrole; REVOKE ALTER on DATABASE db FROM ROLE testrole; REVOKE ALTER on TABLE tbl FROM ROLE testrole; ALTER TABLE ... RENAME requires TABLE level privileges and CREATE at the DATABASE level. Tests: Added ALTER tests to cover scope of existing ALTER tests but in the context of only having ALTER privilege. Ran all fe tests. Cherry-picks: not for 2.x Change-Id: I0b25d10a8634829fbe90e308dfc7efc8182fef2d --- M common/thrift/CatalogObjects.thrift M fe/src/main/cup/sql-parser.cup M fe/src/main/java/org/apache/impala/analysis/PrivilegeSpec.java M fe/src/main/java/org/apache/impala/authorization/Privilege.java M fe/src/test/java/org/apache/impala/analysis/AnalyzeAuthStmtsTest.java M fe/src/test/java/org/apache/impala/analysis/AuthorizationTest.java M fe/src/test/resources/authz-policy.ini.template 7 files changed, 174 insertions(+), 18 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/05/9805/4 -- To view, visit http://gerrit.cloudera.org:8080/9805 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I0b25d10a8634829fbe90e308dfc7efc8182fef2d Gerrit-Change-Number: 9805 Gerrit-PatchSet: 4 Gerrit-Owner: Adam Holley <[email protected]> Gerrit-Reviewer: Adam Holley <[email protected]> Gerrit-Reviewer: Fredy Wijaya <[email protected]>
