Cannot read from view if no access to underlying table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 02:46 AM
Hi,
I created a view my_view in a schema project_schema in Unity catalog catalog_dev that is a select * from a table my_table in my common_schema in the same catalog.
I gave a service principal full grants on the project_schema. It is a owner of the schema and has full privileges on it. But when it tries to select from catalog_dev.project_schema.my_view (from a job cluster with Unity Catalog enabled) it gets the following exception:
Insufficient privileges: User does not have SELECT on Table 'catalog_dev.common_schema.my_table'.
It was my understanding that users do not need read access on all underlying tables in the view definition. What could be the issue?
Thank you,
Tommaso