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

Scope connection parameter creation #929

Merged
merged 22 commits into from
Feb 14, 2025
Merged

Conversation

benc-db
Copy link
Collaborator

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

Description

Worked on another small cleanup during the cancellation PR. This one cleans up the raw function calls that exist in connections.py so that a.) these functions are scoped (so we don't have the weirdness of testing supposedly private functions from a module), and b.) we wrap the query context to simplify those functions by giving a concrete type with known members to operate against. I plan to do more refactoring to connection manager, but need to do that in the 1.10 branch.

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 2ccd729 into main Feb 14, 2025
9 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.

1 participant