You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Lenni Kuff (JIRA)" <ji...@apache.org> on 2016/01/10 09:10:40 UTC
[jira] [Comment Edited] (SENTRY-826) TRUNCATE on empty partitioned
table in Hive fails
[ https://issues.apache.org/jira/browse/SENTRY-826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090948#comment-15090948 ]
Lenni Kuff edited comment on SENTRY-826 at 1/10/16 8:09 AM:
------------------------------------------------------------
Committed to master in:
commit 67031139f0db369ed4969a23e97308c941a8c953
SENTRY-826: TRUNCATE on empty partitioned table in Hive fails (Li Li via Lenni Kuff)
was (Author: lskuff):
Fixed in:
commit 67031139f0db369ed4969a23e97308c941a8c953
SENTRY-826: TRUNCATE on empty partitioned table in Hive fails (Li Li via Lenni Kuff)
> TRUNCATE on empty partitioned table in Hive fails
> -------------------------------------------------
>
> Key: SENTRY-826
> URL: https://issues.apache.org/jira/browse/SENTRY-826
> Project: Sentry
> Issue Type: Bug
> Components: Hive Plugin
> Affects Versions: 1.5.0
> Reporter: Lenni Kuff
> Assignee: Li Li
> Fix For: 1.7.0
>
> Attachments: SENTRY-826.1.patch, SENTRY-826.2.patch, SENTRY-826.3.patch
>
>
> TRUNCATE on empty partitioned table in Hive fails. If the table contains at least one partition, the operation will succeed:
> {code}
> CREATE ROLE admin;
> GRANT ALL ON SERVER server1 TO ROLE admin;
> GRANT ROLE ADMIN TO GROUP <current group>;
> CREATE TABLE Foo(i int) PARTITIONED BY (j int);
> -- Fails
> TRUNCATE TABLE Foo;
> Error: Error while compiling statement: FAILED: SemanticException No valid privileges
> Required privileges for this query: (state=42000,code=40000)
> -- Now add a partition
> ALTER TABLE FOO ADD PARTITION (j=1);
> -- Succeeds
> TRUNCATE TABLE Foo;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)