dbt-docs
dbt-docs copied to clipboard
[Feature] Include filtered dimensions on metrics within the lineage graph
Is this a new bug in dbt-core?
- [X] I believe this is a new bug in dbt-core
- [X] I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When defining a metric by filtering on dimensions from another semantic model, only the primary semantic model is connected in the DAG.
Expected Behavior
All semantic models used in the metric definition are connected as upstream nodes
Steps To Reproduce
- Define metric
- Filter on condition from another semantic model
- Generate docs
- Serve docs
Relevant log output
No response
Environment
- OS: mcr.microsoft.com/devcontainers/python:3.12-bullseye
- Python: 3.12.3
- dbt: 1.8.3
Which database adapter are you using with dbt?
No response
Additional Context
In this case Public Health Centers
is filtering on values from dimension_units
via fact_contacts > link_contacts_units
.