Skip to content

Lazy init api client for connection manager to fix 940 - #941

Merged
benc-db merged 4 commits into
mainfrom
lazy_init
Feb 19, 2025
Merged

benc-db merged 4 commits into
mainfrom
lazy_init

Conversation

@benc-db

@benc-db benc-db commented Feb 18, 2025 •

Copy link
Copy Markdown
Collaborator

Resolves #940

Description

dbt apparently creates the ConnectionManager even when it doesn't intend to make a connection (as in parse). This PR removes one source of errors where dbt has not set the credentials, causing havoc when we try to create the API Client.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@benc-db
benc-db merged commit 35bffec into main Feb 19, 2025
@joaofonsecapromptly

Copy link
Copy Markdown

Hey following this PR which apparently was deployed in 1.9.6, we have 1.10.12 but still run into the same problem. Despite database credentials now being an optional parameter, do you know any possibility that during dbt parse, the credentials may still be required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dbt-databricks tries to establish connection to Databricks when running dbt parse

3 participants