Skip to content

Fix: Add support for args syntax in dbt config#5299

Merged
themisvaltinos merged 3 commits intomainfrom
themis/congif_args
Sep 4, 2025
Merged

Fix: Add support for args syntax in dbt config#5299
themisvaltinos merged 3 commits intomainfrom
themis/congif_args

Conversation

@themisvaltinos
Copy link
Contributor

SQLMesh's dbt integration only supported keyword argument syntax for the config() function:

{{ config(materialized='table', alias='my_table') }}

However dbt also supports dictionary syntax:

{{ config({"materialized": "table", "alias": "my_table"}) }}

and since this: #5269 would make us actually render this jinja config block it would fail without supporting the args

@themisvaltinos themisvaltinos requested review from a team and georgesittas September 4, 2025 16:32
Copy link
Contributor

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Nice!

@themisvaltinos themisvaltinos enabled auto-merge (squash) September 4, 2025 16:59
@themisvaltinos themisvaltinos merged commit 8732257 into main Sep 4, 2025
36 checks passed
@themisvaltinos themisvaltinos deleted the themis/congif_args branch September 4, 2025 17:13
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.

2 participants