Open VippsMe opened 3 weeks ago
This looks like your admin has removed your permission to the system catalog, as every user should have access to this table by default. We can investigate a flag to allow you to reference UC information_schemas scoped by catalog, but we moved to using system catalog as the catalog-scoped information_schema views break if you rename a catalog, so it's kind of a no win situation.
Hello, I encounter the exact same issue even if in my profiles.yml. It works in 1.7.17 but not in 1.8.7 and >
I work on a managed databricks workspace and my company will not allow me rights on the system_catalog.
Do you have a workaround ? Something like set use_system_catalog: false should be great ! ;)
a
Its not because of our admin. Access to catalog 'system' has been the exact same all the time. So it is something about dbt-databricks adapter 1.8.XX that is trying to access catalog 'system' (and not our internal repo/code)
@VippsMe yes, we changed to using system, but we changed because a.) it is more reliable than the individual catalog info_schemas because they are just views of system that can break if the catalog is renamed, and b.) everyone has access to system.information_schema by default. So the reason I'm suggesting that your admin at some point removed your permission, is because you should have access, and if you don't, it's something that an admin can change.
Describe the bug
Issue when using dbt-databricks==1.8.7
[INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have USE CATALOG on Catalog 'system'. SQLSTATE: 42501
Steps To Reproduce
See above. Run dbt compile and it will give you the error message. Target is set to a different catalog in databricks with permissions for the user. Somehow, the dbt-databricks adapter is trying to access catalog 'system'. This catalog is not part of our internal code at all.
Expected behavior
See above.
Screenshots and log output
System information
The output of
dbt --version
:The operating system you're using:
The output of
python --version
:3.10.12Additional context
Add any other context about the problem here.