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

[BUG] target-path config in dbt_project.yaml is deprecated #421

Open
famazak opened this issue Mar 11, 2024 · 0 comments
Open

[BUG] target-path config in dbt_project.yaml is deprecated #421

famazak opened this issue Mar 11, 2024 · 0 comments

Comments

@famazak
Copy link
Contributor

famazak commented Mar 11, 2024

dbt has deprecated the target-path configuration option in dbt_project.yaml in favor of a runtime configuration/environment variable (see dbt-labs/dbt-core#6882) for more detail. The target-path option will be removed in a future dbt version.

When running a dbt project with target-path removed from dbt_project.yaml, the re_data overview command fails with a KeyError from the below line.

project_dict['target-path']

To support dbt's deprecation, the above line should be changed to use the safer dictionary key retrieval method dict.get() so that a default value can be provided with dbt's default target path for backward compatability.

Filing this issue for visibility for now - I'm happy to work on this when I have some spare time

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

No branches or pull requests

1 participant