beeline>grant insert on test10 to user userx;
returns OK. But actually the hive log has a warning entry:
grant/revoke: unexpected privilege type 'DELETE'. Ignored
The policy is actually created but with no policy items. While the "UPDATE" grant properly sets up the policy item.
Both INSERT and DELETE should be mapped to UPDATE.
What user experiences is that the grant of INSERT/DELETE has no effect at all even the return status is good.
So we should either throw an exception, or map the INSERT/DELETE to UPDATE in the "createGrantRevokeData" method of the "RangerHiveAuthorizer" class.