You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by sr...@apache.org on 2015/05/20 21:42:41 UTC
incubator-sentry git commit: SENTRY-227: Fix for "Unsupported entity
type DUMMYPARTITION" (Lars Francke via Sravya Tirukkovalur)
Repository: incubator-sentry
Updated Branches:
refs/heads/master 14e6bdaba -> 024faee91
SENTRY-227: Fix for "Unsupported entity type DUMMYPARTITION" (Lars Francke via Sravya Tirukkovalur)
Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/024faee9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/024faee9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/024faee9
Branch: refs/heads/master
Commit: 024faee9165efd20d63d630f2d455001bca50fd8
Parents: 14e6bda
Author: Sravya Tirukkovalur <sr...@clouera.com>
Authored: Wed May 20 12:40:20 2015 -0700
Committer: Sravya Tirukkovalur <sr...@clouera.com>
Committed: Wed May 20 12:40:20 2015 -0700
----------------------------------------------------------------------
.../java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/024faee9/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java
----------------------------------------------------------------------
diff --git a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java
index 23b6757..ddfb222 100644
--- a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java
+++ b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java
@@ -540,6 +540,7 @@ public class HiveAuthzBindingHook extends AbstractSemanticAnalyzerHook {
objectHierarchy.add(new Table(entity.getTable().getTableName()));
break;
case PARTITION:
+ case DUMMYPARTITION:
objectHierarchy.add(new Database(entity.getPartition().getTable().getDbName()));
objectHierarchy.add(new Table(entity.getPartition().getTable().getTableName()));
break;