Currently only a user can be a owner of hive table. It should be extended so that either user/role can be set a owner of a table.
With this support ownership of a table can be transferred to either user or role.
Should be able to run below commands and change the ownership
alter table tb1 set owner user user1; alter table tb1 set owner role role1;
SENTRY-2255 alter table set owner command can be executed only by user with proper privilege
SENTRY-2338 Enable Sentry code disabled by HIVE-18762
- relates to
SPARK-30019 Add the owner property to v2 table