Skip to content

Commit

Permalink
modify test with casing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyyeo committed May 16, 2022
1 parent 854d334 commit a5fcc7c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

## Fixes
- Enable a negative part_number for `split_part()` ([#557](https://github.com/dbt-labs/dbt-utils/issues/557), [#559](https://github.com/dbt-labs/dbt-utils/pull/559))
- Make `exclude` case insensitive for `union_relations()` ([#578](https://github.com/dbt-labs/dbt-utils/issues/557), [#587](https://github.com/dbt-labs/dbt-utils/issues/587))

## Quality of life
- Documentation about listagg macro ([#544](https://github.com/dbt-labs/dbt-utils/issues/544), [#560](https://github.com/dbt-labs/dbt-utils/pull/560))
Expand All @@ -21,6 +22,7 @@
- [@clausherther](https://github.com/clausherther) (#555)
- [@epapineau](https://github.com/epapineau) (#583)
- [@b-per](https://github.com/b-per) (#559)
- [@dbeatty10](https://github.com/dbeatty10), [@jeremyyeo](https://github.com/jeremyyeo) (#587)

# dbt-utils v0.8.4
## Fixes
Expand Down
7 changes: 6 additions & 1 deletion integration_tests/models/sql/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ models:
tests:
- dbt_utils.not_constant

- name: test_union_exclude
- name: test_union_exclude_lowercase
tests:
- dbt_utils.equality:
compare_model: ref('data_union_exclude_expected')

- name: test_union_exclude_uppercase
tests:
- dbt_utils.equality:
compare_model: ref('data_union_exclude_expected')
Expand Down
4 changes: 0 additions & 4 deletions integration_tests/models/sql/test_union_exclude.sql

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

{{ dbt_utils.union_relations(
relations=[
ref('data_union_table_1'),
ref('data_union_table_2'),
],
exclude=['NAME']
) }}
4 changes: 4 additions & 0 deletions integration_tests/models/sql/test_union_exclude_lowercase.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
select
{{ dbt_utils.star(ref("test_union_exclude_base_lowercase"), except=["_dbt_source_relation"]) }}

from {{ ref("test_union_exclude_base_lowercase") }}
4 changes: 4 additions & 0 deletions integration_tests/models/sql/test_union_exclude_uppercase.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
select
{{ dbt_utils.star(ref("test_union_exclude_base_uppercase"), except=["_DBT_SOURCE_RELATION"]) }}

from {{ ref("test_union_exclude_base_uppercase") }}

0 comments on commit a5fcc7c

Please sign in to comment.