-
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-1652] [Regression] [main/1.4] Failure to raise initialization exception #6434
Comments
If I drop a breakpoint here (line 197): Lines 196 to 198 in 83b1fee
On ipdb> task, res = run_from_args(parsed)
*** dbt.exceptions.RuntimeException: Runtime Error
Could not run dbt On ipdb> task, res = run_from_args(parsed)
15:59:14 Error importing adapter: No module named 'dbt.adapters.bigquery'
15:59:14 Encountered an error while reading profiles:
15:59:14 ERROR: Runtime Error
Credentials in profile "sandbox-bigquery", target "dev" invalid: Runtime Error
Could not find adapter type bigquery!
15:59:14 Defined profiles:
15:59:14 - sandbox-bigquery
15:59:14 - sandbox-databricks
15:59:14 - demo_data
15:59:14 - garage-spark
15:59:14 - garage-firebolt
15:59:14 - garage-postgres
15:59:14 - garage-snowflake
15:59:14 - integration_tests
15:59:14 - jaffle_shop
15:59:14 - sandbox-galaxy
15:59:14 - sandbox-redshift
15:59:14 - sandbox-snowflake
15:59:14
For more information on configuring profiles, please consult the dbt docs:
https://docs.getdbt.com/docs/configure-your-profile
*** dbt.exceptions.RuntimeException: Runtime Error
Could not run dbt |
The exception is occurring on this line: Lines 223 to 225 in 83b1fee
The profile config error is being appropriately caught & handled here: dbt-core/core/dbt/task/base.py Lines 110 to 126 in 83b1fee
But we're not doing any logging, or bubbling up the |
I think this change is due to a change from #6291: dbt-core/core/dbt/events/functions.py Lines 21 to 23 in 8478262
The codepath with the exception is being executed before we've called |
Potential fix: initialize a "basic" Illustrative code in this commit: 9393513 Using the changes in that commit:
|
Resolved by #6447 |
Is this a regression in a recent version of dbt-core?
Current Behavior
If I run
dbt
with a profile that expects an adapter to be installed, and the adapter is not in fact installed, I do not see any error fromdbt run
:(no output)
(no other output)
I do see the expected error from
dbt debug
:Expected/Previous Behavior
dbt run
should raise the same error asdbt debug
, if there is an error during initialization (e.g. trying to use an uninstalled adapter)Steps To Reproduce
main
branchdbt run
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: