diff --git a/macros/tables/pit.sql b/macros/tables/pit.sql index d8944a73..c2a42b3f 100644 --- a/macros/tables/pit.sql +++ b/macros/tables/pit.sql @@ -12,8 +12,9 @@ Parameters: - pit_type::string String to insert into the 'pit_type' column. Allows for future implementations of other - PIT variants, like T-PITs etc. Can be set freely, something like 'PIT' could be the default. + pit_type::string String to insert into the 'pit_type' column. Has to be prefixed by a !. + Allows for future implementations of other PIT variants, like T-PITs etc. + Can be set freely, something like 'PIT' could be the default. Is optional, if not set, no column will be added. tracked_entity::string Name of the tracked Hub entity. Must be available as a model inside the dbt project. diff --git a/macros/tables/snowflake/pit.sql b/macros/tables/snowflake/pit.sql index bf19c441..5476f54c 100644 --- a/macros/tables/snowflake/pit.sql +++ b/macros/tables/snowflake/pit.sql @@ -42,7 +42,7 @@ pit_records AS ( SELECT {% if datavault4dbt.is_something(pit_type) -%} - '{{ datavault4dbt.as_constant(pit_type) }}' as type, + {{ datavault4dbt.as_constant(pit_type) }} as type, {%- endif %} {% if datavault4dbt.is_something(custom_rsrc) -%} '{{ custom_rsrc }}' as {{ rsrc }},