persist_docs functionality doesn't persist descriptions on nested bigquery columns #2549
Closed
1 of 5 tasks
Labels
bigquery
enhancement
New feature or request
good_first_issue
Straightforward + self-contained changes, good for new contributors!
Describe the bug
With the release of dbt 0.17.0, the persist_docs functionality was enhanced to also apply column descriptions to bigquery when they are supplied in a schema.yml file. However, it seems that it only takes into account top-level columns and there is no way to persist a description to a nested column (ie a field that is part of a RECORD type bigquery column).
Steps To Reproduce
Suppose you create a simple test model using dbt in bigquery:
This will create a view/table in bigquery with the following schema:
We can describe this table in a schema.yml file and add descriptions as follows:
When we now perform a
dbt run
on this model, only the description on the top level field is added and no warnings or errors are generated by dbt:Expected behavior
When providing descriptions for nested fields (preferably using the dotted syntax as shown above), the descriptions should be correctly persisted on nested fields.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Mac OS 10.15.3
The output of
python --version
:Python 3.7.5
The text was updated successfully, but these errors were encountered: