Skip to content

Instantly share code, notes, and snippets.

View kevinhoe's full-sized avatar

Kevin Hoe kevinhoe

View GitHub Profile
@jeremyyeo
jeremyyeo / README.md
Last active July 26, 2023 12:32
Filtering dbt's catalog query to only relations that are used in the project #dbt

Filtering dbt's catalog query to only relations that are used in the project

Updates

2022-11-23: Change catalog_2.sql to filter graph nodes for models only. Previously we were retrieving all nodes - this included tests. Added catalog_3.sql that can filter for specific model tags and only retrieve metadata for those.


A small workaround for dbt-labs/dbt-bigquery#115