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
It may seem harmless to add extra elements to yaml, but for example, to_columns is an option for foreign_key, so it shouldn't appear in the above not_null. I think that extra elements should not be added because it can cause confusion among developers in the team.
Thanks to #204, I was able to update to dbt-osmosis v1. Thank you 👍 .
When I upgraded to v1, I noticed that extra elements were being added to the yaml file in cases where I was using
constraints
.I'm assuming that the yaml file before running osmosis is as follows.
When running osmosis with the v1 series, extra elements are added to
constraints
as follows.It may seem harmless to add extra elements to yaml, but for example,
to_columns
is an option forforeign_key
, so it shouldn't appear in the abovenot_null
. I think that extra elements should not be added because it can cause confusion among developers in the team.I think that
constraints
is included inColumnInfo
and that extra fields are added whenfrom_dict
is executed.dbt-osmosis/src/dbt_osmosis/core/osmosis.py
Line 2077 in 5f48d6c
I don't know if it's easy to fix, but if it seems like it could be fixed, I was thinking of sending a pull request.
The text was updated successfully, but these errors were encountered: