Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cardinality test error #334

Merged
merged 5 commits into from
Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add integration tests and update changelog
  • Loading branch information
Joel Labes committed Feb 10, 2021
commit 427aa45c569b02a0b5c49f169817e02e1c4b6668
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# dbt-utils v0.6.5
### Fixes
- Fix `cardinality_equality` test when the two tables' column names differed ([#334](https://github.com/fishtown-analytics/dbt-utils/pull/334)) [@joellabes](https://github.com/joellabes)

# dbt-utils v0.6.4

### Fixes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
same_name
1
2
3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
same_name,different_name
1,2
2,3
3,1
13 changes: 13 additions & 0 deletions integration_tests/models/schema_tests/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,16 @@ models:
combination_of_columns:
- month
- product


- name: data_cardinality_equality_a
columns:
- name: same_name
tests:
- cardinality_equality:
to: data_cardinality_equality_b
field: same_name
- cardinality_equality:
to: data_cardinality_equality_b
field: different_name