Skip to content

Commit

Permalink
Merge pull request #200 from ScalefreeCOM/snowflake-pit-type-static-s…
Browse files Browse the repository at this point in the history
…tring

Add Snowflake pit_type static string support
  • Loading branch information
tkirschke authored Jul 9, 2024
2 parents fbcfa42 + 55615a8 commit 4907908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions macros/tables/pit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/snowflake/pit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 }},
Expand Down

0 comments on commit 4907908

Please sign in to comment.