-
Notifications
You must be signed in to change notification settings - Fork 975
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
Support test results as a view dbt-core PR #8653 #4246
Comments
@dbeatty10 👋🏻 It sounds like we're introducing this feature to provide a more lightweight storage than storing test failures in tables because that's resource heavy and possibly unnecessary. Definition: Storing failures lets you examine records that cause tests to fail, so you can either repair the data or change the test as needed. I'm guessing we need:
🙏🏻 thanks! |
tl;drFor the test resource type,
Where it appliesIt is configurable in all the same places as ExamplesSingular testSingular test in {{ config(store_failures_as="table") }}
-- custom singular test
select 1 as id
where 1=0 Generic testGeneric tests in models:
- name: my_model
columns:
- name: id
tests:
- not_null:
config:
store_failures_as: view
- unique:
config:
store_failures_as: ephemeral Project levelConfig in name: "my_project"
version: "1.0.0"
config-version: 2
profile: "sandcastle"
tests:
my_project:
+store_failures_as: table
my_subfolder_1:
+store_failures_as: view
my_subfolder_2:
+store_failures_as: ephemeral "Clobbering" configsMost configurations are "clobbered" when applied hierarchically, and |
## What are you changing in this pull request and why? Closes: #4246 Adding a page for resource config `store_failures_as` ## Checklist - [x] Add versioning components, as described in [Versioning Docs](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-entire-pages) - [x] Add a note to the prerelease version [Migration Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/guides/migration/versions) - [x] Review the [Content style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) and [About versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version) so my content adheres to these guidelines. - [x] Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch." Adding new pages (delete if not applicable): - [x] Add page to `website/sidebars.js` - [x] Provide a unique filename for the new page
dbt-labs/dbt-core#8653
At a minimum, update body to include a link to the page on docs.getdbt.com requiring updates and what part(s) of the page you would like to see updated.
Pages:
The text was updated successfully, but these errors were encountered: