Skip to content

dbt Constraints v0.3.1

Compare
Choose a tag to compare
@sfc-gh-dflippo sfc-gh-dflippo released this 06 Jun 16:05
· 115 commits to main since this release
e695926

New Features

None

Fixes

  • Added logic to skip constraints when a test has a where set on the test. You can't set conditions on whether a PK/UK/FK applies so such tests are not appropriate to make into physical constraints
  • Updated the logic to support table alias
  • Added a fix that caused dbt Constraints to fail when a user has a singular test. The logic needs to verify a test_metadata node exists before checking the test_metadata.name node to see if it is a supported test to turn into a constraint.

Known issues

None

Full Changelog: 0.3.0...0.3.1