Updates to metrics + exposures: configs, name validation #2052
Labels
content
Improvements or additions to content
dbt-core v1.3
Docs impact for the v1.3 release (Oct 2022)
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/docs/building-a-dbt-project/metrics
https://docs.getdbt.com/docs/building-a-dbt-project/exposures (we should remove or update the section, "Exposures are new")
What part(s) of the page would you like to see updated?
Metrics + exposures have validation requirements for their names, which they didn't have before. Letters, numbers, and characters only, up to a character limit. Poorly named metrics will raise an error; exposures (which have been around longer) will just raise a deprecation warning for now.
Exposures support a
label
property for human-friendly titles, just like metrics.Metrics + exposures can now be configured, with just one built-in config:
enabled: True|False
.I think metrics are also going to support a config named
default_value_null
? (dbt-labs/dbt_metrics#96)Additional information
dbt-labs/dbt-core#5815
dbt-labs/dbt-core#5841
dbt-labs/dbt-core#5844
dbt-labs/dbt_metrics#96
The text was updated successfully, but these errors were encountered: