Repository navigation
feat(dbt): nest generic test arguments under arguments property (closes #1680) - #1682
Merged
jschoedl merged 7 commits intoOct 1, 2026
Merged
Conversation
DBT 1.10+ deprecated declaring generic test parameters directly under the test key without an arguments mapping (MissingArgumentsPropertyInGenericTestDeprecation). This updates export dbt-sources, export dbt-models, and dbt sync to emit generic test parameters under the arguments property while preserving backwards-compatibility in sync helpers when reading pre-existing tests. Closes datacontract#1680
…le still uses the pre-arguments syntax A versioned `dbt sync` compared the tests in the existing model YAML with the freshly generated ones including the `arguments:` wrapper, so any file written by an earlier CLI release never matched. An unchanged column was then forked into per-version overrides on the first sync after upgrading, and the sibling version kept its old-syntax test (and dbt's deprecation warning). Both shapes now compare by their arguments, so the column stays shared and is rewritten to the new syntax.
…ationships ref rewrite
…ails on an older dbt `datacontract dbt test` and `dbt sync --run-tests` now stop with "dbt 1.9.11 is not supported: the generated tests need dbt 1.10 or later" instead of dbt's raw macro error when an older dbt fails to parse the generated tests. The dbt guide and the dbt-models / dbt-sources export pages state the dbt 1.10 minimum.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates dbt generic test outputs to use the dbt 1.10+ syntax with parameters nested under an arguments property, resolving MissingArgumentsPropertyInGenericTestDeprecation.
As suggested in #1680, this covers:
Closes #1680