Closed waligob closed 9 months ago
@waligob FYI @z3z1ma I read the code and it seems that data_type
only works for undocumented_columns
. The job_id
/ email_subject
columns in the screenshot you posted are already populated with a description and not in undocumented_columns
, so I assume that the data_type
is not populated. I think that the data_type
was not entered.
https://github.com/z3z1ma/dbt-osmosis/blob/main/src/dbt_osmosis/core/osmosis.py#L1081-L1093
If you want to use osmosis to populate data_type
for columns that already have a description populated, it would be good to try --force-inheritance
option.
-F, --force-inheritance If specified, forces documentation to be inherited overriding existing column level documentation where
```` -F, --force-inheritance
Upon upgrading from
0.11
to0.12.1
and runningdbt-osmosis yaml refactor
. I found that some, but not all columns are being populated withdata_type
(added in #82), and I can't make sense of why columns are being excluded. Here's an example diff before and after runningdbt-osmosis yaml refactor
:and here is the associated log output from
dbt-osmosis yaml refactor
:I am running on
dbt-bigquery = "1.6.3"
anddbt-osmosis = "0.12.1"