-
Notifications
You must be signed in to change notification settings - Fork 56
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
update metrics spec #100
update metrics spec #100
Conversation
@fivetran-joemarkiewicz would you be able to help review this PR? |
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.
Thanks for opening this PR @Jstein77! I have a few quick questions before approving this PR.
- You call out that this new metric config is compatible with dbt-core 1.6.0. However, the dbt version requirements of the package were not adjusted. Currently the requirements are >= 1.3.0, < 2.0.0. Do you feel this range is still appropriate with the new config?
- Should there be any adjustments to the README section on how to leverage the metrics? If I recall there were some changes with how users will interface with these metrics. Should we update the README documentation to inform users how to best utilize the metric updates?
Hi @Jstein77 just wanted to bump my previous question. Once this is addressed we should be able to move forward with taking steps to fold your changes into the next release.
|
Hi @fivetran-joemarkiewicz sorry for the delay! We were sprinting to release the Semantic Layer beta. Addressing your two excellent questions:
I ran into one issue when testing that I wanted to get your help with. Currently, MetricFlow requires users to create a model in their dbt project called My suggested approach was to remove the
I'm not sure if that impacts your tests, or if this project needs to be able to parse successfully. How would you recommend we proceed? |
Hi @Jstein77 thanks for making the README updates as well as the clarification around the dbt-core version requirements. In regards to your question about the Further, to avoid the issue of users possibly having their own model configured I would recommend we add a config block at the top of the model that is tied to a new variable (possibly What are your thoughts to the above? |
@Jstein77 additionally when reviewing I had an additional few questions I was hoping you could help me understand:
|
@fivetran-joemarkiewicz I like that approach! I think most users already have a
That's correct, semantic models encode information about measures, dimensions and entites from your dbt models in a way that metricflow understands, and you build metrics from measures defined in semantic models.
This isn't needed to host the docs site. We have docs on the semantic manifest here https://docs.getdbt.com/docs/dbt-cloud-apis/sl-manifest i can also add this to the readme. |
This all sounds great, thanks! One final question, would it be possible to add the |
@fivetran-joemarkiewicz updated!
@fivetran-joemarkiewicz One question, I'm using the I added the |
Fantastic, thanks so much @Jstein77! Your changes so far look great, there are a few minor updates I would like to apply (particularly around the version of the package, docs generation, and some documentation updates). Would you be comfortable if I made those changes directly to your branch? If not, I can merge your PR into a staging branch where I will make these changes before merging to Additionally in response to your question:
If you are comfortable with me making updates directly to your branch, I would like to bump you for a review from a Semantic layer point of view before we merge this into our next update. Would that work for you? |
@fivetran-joemarkiewicz feel free to make changes directly to the branch! |
@fivetran-joemarkiewicz these changes look good to me! I'm good to merge this one on my end. |
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.
Looks good to go!
Please provide your name and company
Jordan Stein, dbt Labs
Link the issue/feature request which this PR is meant to address
#101
Detail what changes this PR introduces and how this addresses the issue/feature request linked above.
This PR updates the metrics defined in the project to the new spec supported in dbt-core 1.6. It also adds semantic models, which are a new resource in 1.6
How did you validate the changes introduced within this PR?
Confirmed that the semantic manifest successfully parsed, and
mf valiate-configs
succeeds up to warehouse validation. I would like help testing the actual metric values on sample data.Which warehouse did you use to develop these changes?
Snowflake.
Did you update the CHANGELOG?
Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)
I'm not sure if this change would be considered a patch. Please let me know how to update the version.
Provide an emoji that best describes your current mood
💃