Skip to content

fix: support dbt Core 1.10+ arguments: keyword in unique_combination_of_columns#1077

Open
Hitendrasinhdata7 wants to merge 1 commit intodbt-labs:mainfrom
Hitendrasinhdata7:fix/arguments-keyword-compatibility
Open

fix: support dbt Core 1.10+ arguments: keyword in unique_combination_of_columns#1077
Hitendrasinhdata7 wants to merge 1 commit intodbt-labs:mainfrom
Hitendrasinhdata7:fix/arguments-keyword-compatibility

Conversation

@Hitendrasinhdata7
Copy link
Copy Markdown

Fixes #1058

Problem

Users on dbt Core 1.10+ get this compilation error when using
the arguments: keyword wrapper with unique_combination_of_columns:

macro 'dbt_macro__test_unique_combination_of_columns'
takes no keyword argument 'arguments'

Root Cause

dbt Core 1.10+ passes test arguments as kwargs when using the
arguments: keyword wrapper. The macro was not reading from kwargs.

Fix

Added kwargs.get() calls so both syntaxes work correctly.

Testing

Added integration test covering new arguments: syntax.
Both old and new syntax pass:

Old syntax (dbt < 1.10)
New syntax (dbt >= 1.10)

@Hitendrasinhdata7 Hitendrasinhdata7 requested a review from a team as a code owner April 5, 2026 13:00
@joellabes
Copy link
Copy Markdown
Contributor

Which patch version of dbt 1.10 are you using? Please make sure you have the latest patch installed (v1.10.20) as I believe this is unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No compatability with dbt cloud latest testing syntax

2 participants