Skip to content

Commit 4907908

Browse files
authored
Merge pull request #200 from ScalefreeCOM/snowflake-pit-type-static-string
Add Snowflake pit_type static string support
2 parents fbcfa42 + 55615a8 commit 4907908

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

macros/tables/pit.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212

1313
Parameters:
1414

15-
pit_type::string String to insert into the 'pit_type' column. Allows for future implementations of other
16-
PIT variants, like T-PITs etc. Can be set freely, something like 'PIT' could be the default.
15+
pit_type::string String to insert into the 'pit_type' column. Has to be prefixed by a !.
16+
Allows for future implementations of other PIT variants, like T-PITs etc.
17+
Can be set freely, something like 'PIT' could be the default.
1718
Is optional, if not set, no column will be added.
1819

1920
tracked_entity::string Name of the tracked Hub entity. Must be available as a model inside the dbt project.

macros/tables/snowflake/pit.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pit_records AS (
4242
SELECT
4343

4444
{% if datavault4dbt.is_something(pit_type) -%}
45-
'{{ datavault4dbt.as_constant(pit_type) }}' as type,
45+
{{ datavault4dbt.as_constant(pit_type) }} as type,
4646
{%- endif %}
4747
{% if datavault4dbt.is_something(custom_rsrc) -%}
4848
'{{ custom_rsrc }}' as {{ rsrc }},

0 commit comments

Comments
 (0)