dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.25k stars 1.53k forks source link

[Feature] Better incremental test with full-expect #10321

Open DamienBoue opened 1 week ago

DamienBoue commented 1 week ago

Is this your first time submitting a feature request?

Describe the feature

When we use incremental tests we are not able to test if the merge happen correctly.

Ex:

One solution would be to let us test a full-expect that can test the integrality of the data present after the increment.

This could be written as follow:

expect:
  full_mode: true
  rows:
    - { all the rows }

This would permit us to have non regression test on which someone break the unique key where the merge is done.

Describe alternatives you've considered

No response

Who will this benefit?

Everyone who intent to make non regression tests in the application

Are you interested in contributing this feature?

No response

Anything else?

No response