-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADAP-1034] [Bug] on-run-start hook not run during docs generate step and causes failure #833
Comments
hiya @crystalro0 thanks for writing this up. I have a few follow-up questions why does this fail?does the role you prescribe in the pre-hook have access to This would help me understand where the issue is happening what is the goal of doing this? |
Hi So it works if we do it like you described with using It looks like it is related to: #803 In the documentation it is stated that sql statements that are defined in |
So while we still need to investigate and plan if/how we can support secondary roles in #803 we will definitely need to investigate why |
my current summary
|
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Is this a new bug in dbt-snowflake?
Current Behavior
Customer is unable to run docs generate manually or with the generate docs button due to using the following hooks in
dbt_project.yml
:+on-run-start: "USE SECONDARY ROLES <role_name>"
+pre-hook: "USE SECONDARY ROLES <role_name>"
docs fails with
Database "MY_DB" does not exist or not authorized since current role doesn’t have access to that database.
via the catalog.sql macros when attempting to pull from information_schema.Expected Behavior
Expecting docs generate step to succeed with on-run-start hook or pre-hook running.
Steps To Reproduce
on-run-start
hook with different role (one that has access to everything).Relevant log output
Database "MY_DB" does not exist or not authorized since current role doesn’t have access to that database.
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: