Skip to content

Error processing my_model.sql: TemplateSyntaxError: expected token ',', got '...' #221

@dbeatty10

Description

@dbeatty10

Similar to #217

To reproduce

Create this file:

models/my_autofix_model.sql

{{
    config(
        materialized='view',
        my_custom_config_1='"database"."schema"."identifier"',
        my_custom_config_2='"some_quoted_string"',
        my_custom_config_3='some_unquoted_string',
    )
}}

select 1 as id

Run this command:

dbt-autofix deprecations

I expected it to update the file to the following, but it did not:

{{ config(
    materialized="view",
    meta={'my_custom_config_1': '...', 'my_custom_config_2': '...', 'my_custom_config_3': 'some_unquoted_string'}
) }}

Instead, it said:

Error processing /models/my_autofix_model.sql: TemplateSyntaxError: expected token 
',', got 'database'

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions