Skip to content

Begin tracking add adapter types to invocation context #297

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

Merged

Conversation

QMalcolm
Copy link
Collaborator

resolves #292

Description

We want to keep track of the adapter types being used in an invocation. This is necessary for dbt-labs/dbt-core#11828

Checklist

QMalcolm added 3 commits July 10, 2025 13:43
Tracking `multiple` adapter types instead of an individual adapter type
is perhaps a premature optimization. However I'm doing it to be defensively
foward thinking. There are currently vague plans of multi adapter support.
There isn't, to my knowledge, exactly how far out on the road map, but it
is a known direction. When we get to that point, we'll need the invocation
context to be able to handle knowing about multiple adapters. Switching to
an iterable now is a little odd, given for the time being it'll only ever
have one item. However, once we begin work on multi-adapter support, this
will make that future work easier.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 71.87%. Comparing base (64d60b5) to head (d446e6e).

Files with missing lines Patch % Lines
dbt_common/context.py 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #297      +/-   ##
==========================================
- Coverage   71.88%   71.87%   -0.02%     
==========================================
  Files          52       52              
  Lines        3635     3644       +9     
==========================================
+ Hits         2613     2619       +6     
- Misses       1022     1025       +3     
Flag Coverage Δ
unit 71.87% <70.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MichelleArk MichelleArk merged commit 9d509b5 into main Jul 15, 2025
19 checks passed
@MichelleArk MichelleArk deleted the qmalcolm--292-add-adapter-type-to-invocation-context branch July 15, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support tracking the adapter_type on the InvocationContext
3 participants