tl;dr: Starting with dbt-core v1.8, adapters should no longer import dbt-core directly, but instead import a set of common interfaces defined in dbt-common + dbt-adapters.
I wanted to give this one a try :)
It's mostly a matter of switching import statements. I found two utility classes — SourceConfig and TargetConfig — which depend on type definitions (RuntimeConfigObject, SourceDefinition) that are not included in our common/adapter interface. I'll open a draft PR so we can take a look together & discuss.
Discussion:
tl;dr: Starting with dbt-core v1.8, adapters should no longer import
dbt-core
directly, but instead import a set of common interfaces defined indbt-common
+dbt-adapters
.I wanted to give this one a try :)
It's mostly a matter of switching
import
statements. I found two utility classes —SourceConfig
andTargetConfig
— which depend on type definitions (RuntimeConfigObject
,SourceDefinition
) that are not included in our common/adapter interface. I'll open a draft PR so we can take a look together & discuss.