Skip to content

Commit

Permalink
Add GroupByMetricReference (#292)
Browse files Browse the repository at this point in the history
### Description
A cleanup item from metrics as dimensions. This class is currently in
MetricFlow, but it should live here.

### Checklist

- [x] I have read [the contributing
guide](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md)
and understand what's expected of me
- [x] I have signed the
[CLA](https://docs.getdbt.com/docs/contributor-license-agreements)
- [x] This PR includes tests, or tests are not required/relevant for
this PR
- [ ] I have run `changie new` to [create a changelog
entry](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md#adding-a-changelog-entry)
  • Loading branch information
courtneyholcomb authored Jun 15, 2024
1 parent f68cfdc commit ee52b13
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dbt_semantic_interfaces/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ class MetricReference(ElementReference): # noqa: D
pass


@dataclass(frozen=True)
class GroupByMetricReference(LinkableElementReference):
"""Represents a group by metric.
Different from MetricReference because it inherits linkable element attributes.
"""

pass


class ModelReference(SerializableDataclass):
"""A reference to something in the model.
Expand Down

0 comments on commit ee52b13

Please sign in to comment.