You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to change the view via alter view as query you have to be owner of the table, which is more strict than create or replace as query. If your user/service principal is not owner it will fail (and stops the execution)
I would like dbt to have some fallback scenario (CVAS) in this case.
For us it is ok in production, where we have fixed service principal, but it is creating some troubles in dev as developers are reusing each others' objects. And if would want to change the prod service principal, all runs would start failing
Describe alternatives you've considered
Drop the view and recreate it if you do not have rights.
Additional context
I thought about these possibilities:
somehow check the owner of view and compare with principal and in case of mismatch fallback to "CREATE or REPLACE" (and probably raise some warning)
Try the usual ALTER VIEW as query and in case of raised error try fallback above.
Hi @karasda I am looking to close this issue (will close by Oct 19th), since this is outside of the adapter domain and not something we are looking to support. Let me know if you would want to keep this open.
Activity
sd-db commentedon Aug 31, 2026
I don't think we have instances in the code where we change the SQL based on access and would like to keep this simple (and not extra logic on this).
karasda commentedon Aug 31, 2026
Perhaps it would be beter if Databricks changed this limitation then...
I will ask our Databricks'es solution architect or something.
sd-db commentedon Oct 16, 2026
Hi @karasda I am looking to close this issue (will close by Oct 19th), since this is outside of the adapter domain and not something we are looking to support. Let me know if you would want to keep this open.
sd-db commentedon Oct 19, 2026
Closing as per above ^