Description
Consider the following scenario:
- a resource-based policy allows user user1 select access to all tables in database db1
- tables with name starting with "test" in database db1 are added to security-zone test_zone
Note that user1 doesn't have any access to tables in zone test_zone. However, the user has access to all other tables in database db1 via policy created in #1 above. So, USE db1; command should be allowed for the user. However, the user is denied.
> use db1; Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [user1] does not have [USE] privilege on [db1] (state=42000,code=40000)