You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@impala.apache.org by "Bikramjeet Vig (Code Review)" <ge...@cloudera.org> on 2016/06/08 21:28:20 UTC
[Impala-CR](cdh5-trunk) IMPALA-2836: Change permissions for ADD/DROP PARTITION
Bikramjeet Vig has uploaded a new patch set (#2).
Change subject: IMPALA-2836: Change permissions for ADD/DROP PARTITION
......................................................................
IMPALA-2836: Change permissions for ADD/DROP PARTITION
Currently, to add or drop a partition the user needs ALTER(Ownership)
permission. As an improvement to this and to closely resemble how Hive
handles permissions, the following changes were made:
- ALTER TABLE ADD/DROP PARTITION statement can be executed by a user
having INSERT permission
- ALTER TABLE ADD PARTITION SET LOCATION 'hdfs_path_of_directory'
still requires ALTER(Ownership) permission
Testing:
Added/modified corresponding tests in AuthorizationTest.java
Change-Id: I6d971f0ab46fed87b0428d344d002a42644b9847
---
M fe/src/main/java/com/cloudera/impala/analysis/AlterTableAddPartitionStmt.java
M fe/src/main/java/com/cloudera/impala/analysis/AlterTableDropPartitionStmt.java
M fe/src/main/java/com/cloudera/impala/analysis/AlterTableStmt.java
M fe/src/test/java/com/cloudera/impala/analysis/AuthorizationTest.java
4 files changed, 19 insertions(+), 7 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/27/3327/2
--
To view, visit http://gerrit.cloudera.org:8080/3327
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6d971f0ab46fed87b0428d344d002a42644b9847
Gerrit-PatchSet: 2
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Dimitris Tsirogiannis <dt...@cloudera.com>