Skip to content

Commit 99443ea

Browse files
committed
updated test model for snowflake compatibility
1 parent fb38e7e commit 99443ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

integration_tests/models/sql/test_nullcheck_table.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ with nulled as (
1111

1212
)
1313

14+
{% if target.type == 'snowflake' %}
15+
16+
select
17+
field_1::varchar as field_1,
18+
field_2::varchar as field_2,
19+
field_3::varchar as field_3
20+
21+
from nulled
22+
23+
{% else %}
24+
1425
select
1526

1627
{{ dbt_utils.safe_cast('field_1',
@@ -26,3 +37,5 @@ select
2637
)}} as field_3
2738

2839
from nulled
40+
41+
{% endif %}

0 commit comments

Comments
 (0)