Skip to content
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

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

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Conversation

benc-db
Copy link
Collaborator

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

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
6 checks passed
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
2 participants