-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Description
Teams often document “this is the correct way to query this model” directly in dbt, under model.meta.queries.
We’d like the dbt ingestion source to read meta.queries and create DataHub Query entities for each entry, e.g.:
models:
- name: dim_customer
meta:
queries:
- name: "Active customers (30d)"
description: "Standard engagement pull"
sql: |
select ...
tags: ["production"]
terms: ["CustomerData"]
For each query:
- set
name,description, andsql→queryProperties.statement - map
tags→globalTags,terms→glossaryTerms - link it to the model’s dataset URN via
querySubjects, so it shows up in that dataset’s Queries tab
This would make dbt the single source of truth for “blessed” usage patterns and surface them in DataHub without manual curation.
Metadata
Metadata
Assignees
Labels
No labels