-
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.
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
integration-tests/models/biquery/model_with_quoted_columns_1_bq.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,6 @@ | ||
select 10 as lower, | ||
20 as UPPER, | ||
30 as MiXeD, | ||
40 as `lower quoted`, | ||
50 as `UPPER QUOTED`, | ||
60 as `MiXeD Quoted` |
17 changes: 17 additions & 0 deletions
17
integration-tests/models/biquery/model_with_quoted_columns_2_bq.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,17 @@ | ||
select | ||
lower, | ||
UPPER, | ||
MiXeD, | ||
`lower quoted`, | ||
`UPPER QUOTED`, | ||
`MiXeD Quoted` | ||
from {{ dbt_unit_testing.ref('model_with_quoted_columns_1_bq') }} | ||
where | ||
(lower = 10 or lower is null) | ||
and (UPPER = 20 or UPPER is null) | ||
and (MiXeD = 30 or MiXeD is null) | ||
and (`lower quoted` = 40 or `lower quoted` is null) | ||
and (`UPPER QUOTED` = 50 or `UPPER QUOTED` is null) | ||
and (`MiXeD Quoted` = 60 or `MiXeD Quoted` is null) | ||
|
||
|
14 changes: 14 additions & 0 deletions
14
integration-tests/tests/unit/bigquery/model_with_quoted_columns_2_bq.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'] | ||
) | ||
}} | ||
|
||
{% call dbt_unit_testing.test('model_with_quoted_columns_2_bq') %} | ||
{% call dbt_unit_testing.mock_ref ('model_with_quoted_columns_1_bq', options={"include_missing_columns": true}) %} | ||
select 10 as lower | ||
{% endcall %} | ||
{% call dbt_unit_testing.expect() %} | ||
select 10 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
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,4 @@ | ||
packages: | ||
- package: dbt-labs/dbt_utils | ||
version: 1.1.1 | ||
sha1_hash: 6c40b29313579fa0ad53f0b3f6b4f4779ea77de2 |