-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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-1598] [Regression] Granting select does not work with dbt-postgres==1.3.1 #6378
Comments
@keurcien What's the actual error you're seeing?
This is surprising — we only added built-in support for Is it possible that you hand-rolled your own implementation of a |
Ok actually my user was not 'user_a' but 'metabase-proxy' and it might be due to the dash
|
Ah! So either we need to add quotes to the
Or you need to add (double) quotes in your own config: {{
config(
grants = {'select': ['"metabase-proxy"']}
)
}} There isn't usually a downside to quoting on Postgres/Redshift, but worth considering edge cases. I still don't see how this is a regression in v1.3, though. |
Oh ok! Yeah my bad because I thought it was broken, gonna close the issue. Thanks for your help! |
Is this a regression in a recent version of dbt-core?
Current Behavior
Granting
select
to a certain user by adding this config to a model used to work with dbt 1.1.x, but after an upgrade to dbt 1.3.0, this raises an error when runningdbt run --models xxx
Expected/Previous Behavior
The dbt command should not fail.
Steps To Reproduce
one.sql
4.Run the command
dbt run --models one
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: