We are trying to control access to schemas under hive_metastore, only allowing certain users to access the tables under a schema (via SQL, Pyspark, and Python...), we have follow steps in a testing schema:
1. Enable workspace table access control
2. Run GRANT ALL PRIVILEGES ON SCHEMA test to the user ID myself
3. spark.sql("REVOKE ALL PRIVILEGES ON SCHEMA test FROM admins")
4. spark.sql("REVOKE ALL PRIVILEGES ON SCHEMA test FROM users")
But after these steps, other users still can see the tables under the test schema and run the SELECT statement for the tables under it.
Has anyone encountered a similar issue or have suggestions on how to make it work?
Thanks in advance.