You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a recent change to the second macro in the get_resource_ns.sql file. There is a syntax issue with a parenthesis. Within the else statement (when dbt_tags__opt_in_default_naming_config = false), this is what is returned:
The second parenthesis after target.database should be removed and added to the end of target.schema, so that the schema var is included in the return statement. Should look like this:
In dbt_project.yml, set the var dbt_tags__opt_in_default_naming_config: false
In dbt_project.yml, set a the vars for dbt_tags__database and dbt_tags__schema to desired values.
Execute a dbt run or build
Expected results
The tag is found at the specified target_database.target_schema
Actual results
The tag cannot be found because the macro is looking for it in target.database, but not including the target.schema in the path.
Screenshots and log output
System information
The contents of your packages.yml file:
Which database are you using dbt with?
[x ] snowflake
other (specify: ____________)
The output of dbt --version:
<output goes here>
Additional context
The issue is line 9 of the get_resource_ns.sql file. There was a recent commit to that line that needs refactoring. The parenthesis just needs to be moved to the end of target.schema so that the schema var is included in the return statement.
Are you interested in contributing the fix?
The text was updated successfully, but these errors were encountered:
Describe the bug
There was a recent change to the second macro in the
get_resource_ns.sql
file. There is a syntax issue with a parenthesis. Within theelse
statement (when dbt_tags__opt_in_default_naming_config = false), this is what is returned:{{ return(var("dbt_tags__database", target.database)) ~ "." ~ var("dbt_tags__schema", target.schema) }}
The second parenthesis after target.database should be removed and added to the end of target.schema, so that the schema var is included in the return statement. Should look like this:
{{ return(var("dbt_tags__database", target.database) ~ "." ~ var("dbt_tags__schema", target.schema)) }}
Steps to reproduce
dbt_tags__opt_in_default_naming_config: false
dbt_tags__database
anddbt_tags__schema
to desired values.Expected results
The tag is found at the specified target_database.target_schema
Actual results
The tag cannot be found because the macro is looking for it in target.database, but not including the target.schema in the path.
Screenshots and log output
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:Additional context
The issue is line 9 of the get_resource_ns.sql file. There was a recent commit to that line that needs refactoring. The parenthesis just needs to be moved to the end of target.schema so that the schema var is included in the return statement.
Are you interested in contributing the fix?
The text was updated successfully, but these errors were encountered: