dbt-labs / dbt-labs/dbt

[CT-1025] Should adapters be loaded earlier?

Open
#5,639 1 comment 0 reactions 0 assignees View on GitHub
engine:v1 init type:tech-debt
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

While looking at #5620, the fact that adapters are [loaded only as part of ConfiguredTask](https://github.com/dbt-labs/dbt-core/blob/43e3fc22c4eae4d3d901faba05e33c40f1f1dc5a/core/dbt/task/base.py#L175-L181) came up. This means that anywhere in the codebase that uses [get_adapter_package_names](https://github.com/dbt-labs/dbt-core/blob/43e3fc22c4eae4d3d901faba05e33c40f1f1dc5a/core/dbt/adapters/factory.py#L150) will not have access to the packages that adapters use.

This ticket tracks the effort around finding out if this behavior should be modified or remain as is.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.