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

[Feature] Add support for unit testing materialized views #11364

Open
3 tasks done
james-johnston-thumbtack opened this issue Mar 5, 2025 · 0 comments
Open
3 tasks done
Labels
enhancement New feature or request triage

Comments

@james-johnston-thumbtack

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

dbt unit tests do not support unit testing models that have materialized view materialization: https://docs.getdbt.com/docs/build/unit-tests

Documentation states:

We currently don't support unit testing models that use the materialized view materialization.

We would like to be able to unit test models that have materialized view materializations.

Describe alternatives you've considered

The status quo, which is to not have unit tests at all. This results in lower code quality since unit tests are a core part of any quality software engineering project.

Who will this benefit?

We are setting up a dbt project for a streaming database, RisingWave. Materialize is another streaming database gaining in popularity.

Streaming database design commonly uses materialized views, which are always kept up-to-date in a streaming fashion. This is one of the key selling points of these databases.

Thus, dbt unit tests will only be of much more limited use with these database types, unless dbt can support unit testing materialized views.

Are you interested in contributing this feature?

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

1 participant