Configure your elementary exposure validation tests
Within yourmodels
directory, add a file called exposures.yml
You can read up about exposures and how to add them at dbt
documentation
Adding the Elementary exposure information
For each exposure you wish to verify, add a new property calledmeta
:
In Elementary Cloud, the exposures and exposure validation tests are added
automatically, leveraging an integration with your BI tool.
data_type
)
Adding the Elementary exposure tests for your module
For each module schema you wish to verify the exposure dependencies, add the elementary exposure tests:--select tag:elementary
.
Upon running the tests, if breaking changes are detected in the model, the test will fail and in the test result query you’ll be able to see the reasons:
What does it mean when a test fails?
When a test fails, it means that an exposure is potentially broken due to a missing or wrongly-typed column. Open your BI tool to validate, and if you make any changes to your dashboards be sure to update theexposures.yml
and your model schema accordingly.