-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-25] [Bug] dbt deps should not require a profile #4554
Comments
When you say "we now have the following error message", do you mean that this used to work? In what version? A quick glance at the code shows that throwing an error for a missing env_var is not new to 1.0.0. I think the ability to set a default for the env_var, like you do for DBT_THREADS, is designed for this case. You could do env_var('REDSHIFT_DATABASE, ''). |
Hello, it was working perfectly for the version before the 1.0.0. |
This bug is due to changing the env_var exception to a parsing exception, so that the exception is not caught in _get_rendered_profile in core/dbt/config/runtime.py. The error that is issued in 0.21 is not correct however, and this is not a good way to handle suppressing profile errors because the final error reported is not correct. This should be fixed, however, since we should not need to load a profile for the dbt deps command. |
We should also check |
Is there an existing issue for this?
Current Behavior
We have defined a profile like that :
If one of the env is not defined ( ex : REDSHIFT_DATABASE) we now have the following error message while running
dbt deps
If it is defined with a dummy data, it works properly. ( So it does not check connection)
Expected Behavior
dbt deps
should not return any issue when a env variable is not defined.Steps To Reproduce
dbt deps
Relevant log output
No response
Environment
What database are you using dbt with?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: