gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
462 stars 71 forks source link

Added support for aliased models and source blocks #17

Closed z3z1ma closed 3 years ago

z3z1ma commented 3 years ago

Added alias support in model parsing. Also added searching for "sources" yml blocks pushing table/column documentation to metabase (defining sources is recommended by dbt best practices and often done in tandem with creating staging models). Allows using "metabase.fk_ref" in sources or models .yml in order explicitly define a metabase relationship to a table which allows us to propagate the FK relationship properly to Metabase regardless of aliasing. metabase.fk_ref is looked for first in meta before falling back to default parser.

z3z1ma commented 3 years ago

@gouline

Changes requested are complete. I'll probably contribute more in the near future considering the successful adoption of dbt I worked with my company to achieve and our relatively high usage of metabase.

z3z1ma commented 3 years ago

@gouline Changes complete as recommended. 👍