z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
422 stars 46 forks source link

Bug - Error when using `--skip-add-columns` for `dbt-osmosis yaml document` #135

Closed b-per closed 2 months ago

b-per commented 2 months ago

When running dbt-osmosis yaml document --catalog-file target/catalog.json models/marts/ --skip-add-columns, a few errors appear in the log with the same message:

ERROR    Error occurred while processing model <mymodel>:               osmosis.py:963
         local variable 'n_cols_added' referenced before assignment                                                                  

dbt-osmosis, version 0.12.8 dbt version : 1.7.5