Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
add mf timespine behavior change #6408
add mf timespine behavior change #6408
Changes from 6 commits
90102e6
39b2959
05788a4
85e5456
1e6431e
eab33f4
9c22bb4
c1d128f
b6586b3
bbdf38f
3a95356
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 72 in website/docs/reference/global-configs/behavior-changes.md
GitHub Actions / vale
[vale] website/docs/reference/global-configs/behavior-changes.md#L72
Raw output
Check warning on line 74 in website/docs/reference/global-configs/behavior-changes.md
GitHub Actions / vale
[vale] website/docs/reference/global-configs/behavior-changes.md#L74
Raw output
Check warning on line 75 in website/docs/reference/global-configs/behavior-changes.md
GitHub Actions / vale
[vale] website/docs/reference/global-configs/behavior-changes.md#L75
Raw output
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 updating these docs, but this is the other way around. See my note in the PR description here
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.
oh right sorry, i missed the tests. thanks for clarifying @DevonFulcher ! so the flag allows users to continue to support the SQL file configuration. I'll update!
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.
updated it to this @DevonFulcher :
MetricFlow time spine YAML
The
require_yaml_configuration_for_mf_time_spines
flag is set toFalse
by default.Set the flag to
True
to require YAML configuration for MetricFlow time spine file for dbt Cloud Versionless or dbt Core 1.9 and later. In previous versions (dbt Core 1.8 and earlier), the MetricFlow time spine configuration was stored in ametricflow_time_spine.sql
file.When the flag is set to
True
, dbt will continue to support the SQL file configuration. When the flag is set toFalse
, dbt will raise a deprecation warning if it detects a MetricFlow time spine configured in a SQL file.The MetricFlow YAML file should be named
models/_models.yml
and should be located in themodels
directory.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 great! So, both configurations are accepted for now, regardless of the value of
require_yaml_configuration_for_mf_time_spines
, so this line isn't totally accurate:I think we can just delete that sentence since you describe the True/False behavior later in this section.
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.
good flag, removed it now @DevonFulcher !
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.
I think the model can be named anything as long as it has the
time_spine:
field. Maybe we just link to the v1.9 docs here?