Skip to content
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

clarify mf timespine confusion #6252

Merged
merged 5 commits into from
Oct 8, 2024
Merged

clarify mf timespine confusion #6252

merged 5 commits into from
Oct 8, 2024

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Oct 7, 2024

this pr clarifies the confusing content explained by @patkearns10 in this internal slack thred

@mirnawong1 mirnawong1 requested a review from a team as a code owner October 7, 2024 09:42
Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Oct 8, 2024 8:29am

@github-actions github-actions bot added content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address labels Oct 7, 2024
website/docs/docs/build/metricflow-time-spine.md Outdated Show resolved Hide resolved
- It needs to reference a column defined under the `columns` key, in this case, `date_hour` and `date_day`, respectively.
- The `standard_granularity_column` is the column that maps to one of our [standard granularities](/docs/build/dimensions?dimension=time_gran). This column must be set under the `columns` key and should have a grain that is finer or equal to any custom granularity columns defined in the same model.
- It needs to reference a column defined under the `columns` key, in this case, date_hour and date_day, respectively.
- It sets the granularity at the column-level using the `granularity` key, in this case, `hour` and `day`, respectively.
- MetricFlow will use the `standard_granularity_column` as the join key when joining the time spine table to other source table.

[The `custom_granularities` field](#custom-calendar), (available in Versionless and dbt v1.9 and higher) lets you specify non-standard time periods like `fiscal_year` or `retail_month` that your organization may use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be another bullet after custom_granularities?

@mirnawong1
Copy link
Contributor Author

thanks so much @patkearns10 !

@mirnawong1 mirnawong1 enabled auto-merge October 8, 2024 08:27
@mirnawong1 mirnawong1 merged commit ae09bab into current Oct 8, 2024
6 checks passed
@mirnawong1 mirnawong1 deleted the update-mf-timespine branch October 8, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants