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

Add uniqueness test for default.vw_pin_permit view #712

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion dbt/models/default/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ View containing aggregate land square footage for all PINs.
View containing building permits organized by PIN, with extra metadata
recorded by CCAO permit specialists during the permit processing workflow.

**Primary Key**: `pin`, `permit_number`
**Primary Key**: `pin`, `permit_number`, `date_issued`
{% enddocs %}

# vw_pin_sale
Expand Down
7 changes: 7 additions & 0 deletions dbt/models/default/schema/default.vw_pin_permit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@ models:
description: '{{ doc("column_permit_status") }}'
- name: work_description
description: '{{ doc("column_permit_work_description") }}'
data_tests:
- unique_combination_of_columns:
name: default_vw_pin_permit_unique_by_pin_and_permit_number
combination_of_columns:
- pin
- permit_number
- date_issued
Loading