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

Allow non-root-relative paths for Source Resoruces #50

Open
kokorin opened this issue Aug 20, 2024 · 0 comments
Open

Allow non-root-relative paths for Source Resoruces #50

kokorin opened this issue Aug 20, 2024 · 0 comments

Comments

@kokorin
Copy link
Owner

kokorin commented Aug 20, 2024

Sources require root-relative path to be used for dbt-pumpkin-path conf property.
The actual limitation is less strict: source YAML path should be idempotent. For that it's enough to validate that target YAML path is sibling to the original YAML path.

Example:

# sources.yml
version: 2
sources:
  - name: my_source
    tables: [ ... ]
  - name: my_another_source
    tables: [ ... ]
# dbt_project.yml
...
sources:
  +dbt-pumpking-path: "_source_{name}.yml"

Expected files:

# _source_my_source.yml
version: 2
sources:
  - name: my_source
    tables: [ ... ]
# _source_my_another_source.yml
version: 2
sources:
  - name: my_another_source
    tables: [ ... ]

This allows to make sure that target file path doesn't depend on previous invocations and is definitely defined.

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