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

ADAP-893: Support test results as views #783

Merged
merged 9 commits into from
Oct 11, 2023

Conversation

mikealfare
Copy link
Contributor

@mikealfare mikealfare commented Sep 19, 2023

resolves dbt-labs/dbt-core#6914
docs dbt-labs/docs.getdbt.com/#

Problem

This will support persisting tests results as views. See the attached issue for more information.

Solution

Users can use strategy="view" in the config block in their dbt tests to create the test results as a view. This allows the results to update along with underlying data, e.g. when the underlying data is in a dynamic table.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

@mikealfare mikealfare requested a review from a team as a code owner September 19, 2023 21:14
@mikealfare mikealfare self-assigned this Sep 19, 2023
@cla-bot cla-bot bot added the cla:yes label Sep 19, 2023
@mikealfare mikealfare merged commit 0bf3822 into main Oct 11, 2023
24 checks passed
@mikealfare mikealfare deleted the feature/materialized-tests/adap-893 branch October 11, 2023 17:22
philippe-boyd-maxa pushed a commit to maxa-ai/dbt-snowflake that referenced this pull request Nov 27, 2023
* implement persist test results tests, leave querying relation type as open issue

* update to use centralized relation type tests

* update changelog and test names to reflect renamed parameter

* implement store-failures-as test cases

* revert dev branch update

* update tests to cover new test cases in dbt-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-2070] [Feature] Materialized tests
2 participants