-
Notifications
You must be signed in to change notification settings - Fork 23
Add measures to metrics (temporary) & fix metric deduplication #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
6fc1365 to
b5f1efc
Compare
b5f1efc to
e35ed6e
Compare
| type_params: | ||
| measure: | ||
| name: bookings | ||
| fill_nulls_with: 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
de-duplicating cut the number of metrics down by 1, but I wanted to make sure we had variety in our tests so I made this one require a new metric.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what a silly metric!
...s/transformations/measure_to_metric_transformation_pieces/measure_features_to_metric_name.py
Show resolved
Hide resolved
...s/transformations/measure_to_metric_transformation_pieces/measure_features_to_metric_name.py
Outdated
Show resolved
Hide resolved
courtneyholcomb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One main concern!
...s/transformations/measure_to_metric_transformation_pieces/measure_features_to_metric_name.py
Outdated
Show resolved
Hide resolved
...s/transformations/measure_to_metric_transformation_pieces/measure_features_to_metric_name.py
Outdated
Show resolved
Hide resolved
...s/transformations/measure_to_metric_transformation_pieces/measure_features_to_metric_name.py
Outdated
Show resolved
Hide resolved
| type_params: | ||
| measure: | ||
| name: bookings | ||
| fill_nulls_with: 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what a silly metric!
courtneyholcomb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Merge activity
|
Version BUUUUUUUMP This PR is just here to pull in the new transformations and such from dsi. Early commits in this PR will be pinned to commits while I'm working on feeding dbt-labs/dbt-semantic-interfaces#436 to the merge-asaurus. Snapshot updates reflect the fact that now(*) we produce more metrics to replace measures, reflecting the changes in structure for the new user YAML. (*) "now" is true, but ONLY IN TESTS. Because of a transformation rule that exists only in MF right now, we don't use the list of transformations directly from dsi. See upstack #1877 for the PR that brings these changes to prod. OTH, tests DO run on the default list of metric transformations from dsi, so the snapshots needed more immediate updating.

Towards #387
Description
This PR contains a few small changes and improvements, all grouped up in the process of getting to a point where metricflow can onboard onto the new dsi version immediately.
At a high level, these changes take three forms. I've tried to detail in comments throughout the PR, but here as well:
measures and sometimesinput_measuresto some of the new metrics made in transformations. This is only necessary because the upgrades in MF are not yet complete and some operations still throw errors when encountering metrics without input measures (especially in tests :/ ), and these new lines can be removed in a few weeks when everything is ready.I've also tested this by pointing the metricflow repo at the top commit here to make sure
make testis running alright since the latest dsi version would not work in MF before.Checklist
changie newto create a changelog entry