-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cease using uppercase for snowflake column identifiers
- Loading branch information
Showing
4 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
select 1 as lower, | ||
2 as UPPER, | ||
3 as MiXeD, | ||
4 as "lower quoted", | ||
5 as "UPPER QUOTED", | ||
6 as "MiXeD Quoted" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
select | ||
lower, | ||
UPPER, | ||
MiXeD, | ||
"lower quoted", | ||
"UPPER QUOTED", | ||
"MiXeD Quoted" | ||
from {{ dbt_unit_testing.ref('model_with_quoted_columns_1') }} | ||
where | ||
(lower = 1 or lower is null) | ||
and (UPPER = 2 or UPPER is null) | ||
and (MiXeD = 3 or MiXeD is null) | ||
and ("lower quoted" = 4 or "lower quoted" is null) | ||
and ("UPPER QUOTED" = 5 or "UPPER QUOTED" is null) | ||
and ("MiXeD Quoted" = 6 or "MiXeD Quoted" is null) | ||
|
||
|
14 changes: 14 additions & 0 deletions
14
integration-tests/tests/unit/model_with_quoted_columns_2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ | ||
config( | ||
tags=['unit-test', 'bigquery', 'snowflake', 'postgres'] | ||
) | ||
}} | ||
|
||
{% call dbt_unit_testing.test('model_with_quoted_columns_2') %} | ||
{% call dbt_unit_testing.mock_ref ('model_with_quoted_columns_1', options={"include_missing_columns": true}) %} | ||
select 1 as lower | ||
{% endcall %} | ||
{% call dbt_unit_testing.expect() %} | ||
select 1 as lower | ||
{% endcall %} | ||
{% endcall %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters