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

Add test for ensuring bad incremental strategies get validated/caught #160

Merged

Conversation

QMalcolm
Copy link
Contributor

resolves #159

Problem

dbt-labs/dbt-adapters#331 added a new test to dbt-adapters. We should also run it in dbt-postgres

Solution

Running the test in dbt-postgres

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

@QMalcolm QMalcolm requested a review from a team as a code owner October 16, 2024 21:18
@cla-bot cla-bot bot added the cla:yes label Oct 16, 2024
@QMalcolm
Copy link
Contributor Author

This PR requires dbt-labs/dbt-adapters#331 to be merged first. That is because the workflow will fail here until the changes of dbt-labs/dbt-adapters#331 are available on the main branch of dbt-adapters.

…rs dependencies

This is necessary because the changes we are making in dbt-adapters via dbt-labs/dbt-adapters#331
only get tested when run with an adapter. So this branch on dbt-postgres is not just
for ensuring the test is run, but also proof for the open PR in dbt-adapters that
the tests work. To show that though, we have to update the dependencies to temporarily
point at the dbt-adapters branch that has the work (because the work hasn't been merged
to main yet)
Copy link
Contributor

@mikealfare mikealfare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to revert pyproject.toml, otherwise this is fine.

@mikealfare mikealfare merged commit 4555e5d into main Oct 18, 2024
17 checks passed
@mikealfare mikealfare deleted the qmalcolm--159-always-ensure-valid-incremental_strategy branch October 18, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test incremental strategy validation
2 participants