-
Notifications
You must be signed in to change notification settings - Fork 175
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
[CT-2044] Secondary role in tests #449
Comments
Indeed highly needed here as well, as I rely in my models on a pre_hook that enables "USE SECONDARY ROLES ALL". The views created in this way are not available for tests, as they require tables only available through secondary roles. So tests only work on tables created not on views. |
This seems like a reasonable request. Rather than extending support for arbitrary dbt-snowflake/dbt/adapters/snowflake/impl.py Lines 78 to 89 in ad9cae8
To extend that support to tests (in addition to models/seeds/snapshots), it would also require resolving this issue: |
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. |
Would very much like to encourage dbt development to consider this enhancement. As a dbt outsider (I'm a Snowflake admin) I really hope this upgrade can be acted on. As previously noted it seems like this problem only applies to the 'test component' of the framework. We just need the test part of the product to be able to fire off "use secondary roles all" as an option. It doesn't seem like it would be very hard to implement... |
Is this your first time submitting a feature request?
Describe the feature
In my project I'm using a secondary role as a pre-hook, which is working fine. But the problem is, that the pre-hook is not working for tests. I have experieced a similar problem in some macros (from dbt_utils), which need to access tables related with the secondary role. Unfortunately I need to merge the previleges of both roles now, which is not always that easy in big companies. I hope, I haven't missed any solution, that already exists.
Describe alternatives you've considered
No response
Who will this benefit?
Anybody, who is forced to use a secondary role.
Are you interested in contributing this feature?
I think, I'm not able.
Anything else?
No response
The text was updated successfully, but these errors were encountered: