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 45 forks source link

Allow for documenting Struct Fields - BigQuery #35

Closed brandon-segal closed 1 year ago

brandon-segal commented 1 year ago

Description

This PR updates the get_columns method to account for the fact that in BigQuery Projects, the columns can be nested structures. This is accounted for by flattening these structs to ensure that every name is accounted for. This logic will be used when the type returned by the adapter is a BigQuery Column with the flatten method. Otherwise, the column names will be returned without flattening.

Impact

Fixes #32

z3z1ma commented 1 year ago

Thanks for the contribution! LGTM