SENTRY-2312: Update owner privileges for table when owner is changed. (Kalyan Kumar Kalvagadda reviewed by Lina li)
diff --git a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryHmsEvent.java b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryHmsEvent.java
index e5d4437..e0f35e8 100644
--- a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryHmsEvent.java
+++ b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryHmsEvent.java
@@ -181,9 +181,9 @@
 
   private void setOwnerInfo(Table table) {
     ownerName = (table != null) ? table.getOwner() : null;
-    // Hive 2.3.2 currently support owner type. Assuming user as the type for now.
-    // TODO once sentry dependency is changed to a hive version that suppots user type for table this
-    // hard coding should be rempved.
+    // TODO once sentry dependency is changed to a hive version that has fix for HIVE-18762
+    // below hard coding should be removed.
+    // ownerType = mapOwnerType.get(table.getOwnerType());
     ownerType = TSentryPrincipalType.USER;
   }