-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Is this a new bug in dbt-core?
- I believe this is a new bug in dbt-core
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
In the Semantic Layer, metrics that have a filter dependent on another metric are not included as part of the lineage graph.
Sample definition
- name: ns_push_and_in_app_messaging
description: ARR $ sending mobile push/in-app
type: derived
label: North Star for Push and In-App Messaging
type_params:
expr: sum_ending_arr
metrics:
- name: sum_ending_arr
filter: |
{{ Metric('sum_push_received', group_by=['klaviyo_account_id']) }} > 0
Rendered Lineage
Expected Behavior
The filtered metric should be part of the lineage
Steps To Reproduce
- Create metric with a filter using a different source metric
- Run
dbt docs
Relevant log output
N/AEnvironment
- OS: MacOS 26.2
- Python: 3.13.2
- dbt: 1.12.0-a1 (hatch)
- snowflake 1.11.1Which database adapter are you using with dbt?
snowflake
Additional Context
PR to come!
Reactions are currently unavailable