You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is a new bug in dbt-semantic-interfaces
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
An end user has reported a problem with a set.intersection() error in MetricFlow, which was ultimately caused by a mis-configured derived metric defined with no metric inputs. See the community slack thread for more details.
In looking at the derived metric validation logic, there is no check that the metric inputs are non-empty, only a check that all inputs provided exist.
Expected Behavior
If a metric config has derived metrics with no inputs specified, semantic validation should fail with an informative message.
Steps To Reproduce
Create a metric with a spec like this:
metrics:
- name: bad_derived_metric
type: derived
description: "a bad derived metric"
type_params:
expr: "2 + 2"
This will pass validation.
Relevant log output
No response
Environment
- OS:
- Python:
- dbt:
- dbt-semantic-interfaces: 0.4.x through current main
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Is this a new bug in dbt-semantic-interfaces?
Current Behavior
An end user has reported a problem with a set.intersection() error in MetricFlow, which was ultimately caused by a mis-configured derived metric defined with no metric inputs. See the community slack thread for more details.
In looking at the derived metric validation logic, there is no check that the metric inputs are non-empty, only a check that all inputs provided exist.
Expected Behavior
If a metric config has derived metrics with no inputs specified, semantic validation should fail with an informative message.
Steps To Reproduce
Create a metric with a spec like this:
This will pass validation.
Relevant log output
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: