You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our project we have to support different set of sources for dev and prod envs.
We found a bug with dbt-osmosis yaml refactor: disabled sources are corrupted if source file location is set in dbt_project.yml like this:
Not 100% sure this would work but something along these lines, might need to point a gitignored file. The source synchronization is meant to both add new tables from a source but also remove stuff that no longer exists. I don't see why we couldn'e have a flag to opt out of any behavior like that though.
Intro
In our project we have to support different set of sources for dev and prod envs.
We found a bug with
dbt-osmosis yaml refactor
: disabled sources are corrupted if source file location is set indbt_project.yml
like this:Here is a file containing minimal DBT project reproducing behavior described above: dbt-osmosis-disabled-source-bug.zip
How to reproduce
.\.venv\Scripts\activate
orsource .venv/bin/activate
pip install -r requirements.txt
dbt build
dbt build --target prod
_prod_sources.yml
content, it should bedbt-osmosis yaml refactor
_prod_sources.yml
content, it now contains no tables and config is wrong:_dev_sources.yml
content, it's updated correctly:The text was updated successfully, but these errors were encountered: