-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
1e303c3
commit fbc43c5
Showing
6 changed files
with
124 additions
and
2 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
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
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,34 @@ | ||
-- Copy of defualt.vw_pin_status that feeds the "Parcel Status" open data asset. | ||
|
||
/* The following columns are not included in the open data asset, or are | ||
currently hidden: | ||
ward_name | ||
*/ | ||
|
||
SELECT | ||
CONCAT(pin, year) AS row_id, | ||
pin, | ||
year, | ||
class, | ||
is_corner_lot, | ||
is_ahsap, | ||
is_exempt, | ||
is_zero_bill, | ||
is_parking_space, | ||
parking_space_flag_reason, | ||
is_common_area, | ||
is_leasehold, | ||
is_mixed_use, | ||
is_railroad, | ||
is_weird, | ||
weird_flag_reason, | ||
oby_cdu_code, | ||
oby_cdu_description, | ||
comdat_cdu_code, | ||
comdat_cdu_description, | ||
dweldat_cdu_code, | ||
dweldat_cdu_description, | ||
pardat_note, | ||
is_filler_class, | ||
is_filler_pin | ||
FROM {{ ref('default.vw_pin_status') }} |
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
64 changes: 64 additions & 0 deletions
64
dbt/models/open_data/schema/open_data.vw_parcel_status.yml
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,64 @@ | ||
models: | ||
- name: open_data.vw_parcel_status | ||
description: '{{ doc("view_vw_parcel_status") }}' | ||
|
||
columns: | ||
- name: class | ||
description: '{{ doc("shared_column_class") }}' | ||
- name: comdat_cdu_code | ||
description: CDU from `iasworld.comdat` table | ||
- name: comdat_cdu_description | ||
description: CDU code description for `comdat_cdu_description` | ||
- name: dweldat_cdu_code | ||
description: CDU from `iasworld.dweldat` table | ||
- name: dweldat_cdu_description | ||
description: CDU code description for `dweldat_cdu_description` | ||
- name: is_ahsap | ||
description: '{{ doc("shared_column_is_ahsap") }}' | ||
- name: is_common_area | ||
description: '{{ doc("shared_column_is_common_area") }}' | ||
- name: is_corner_lot | ||
description: '{{ doc("shared_column_is_corner_lot") }}' | ||
- name: is_exempt | ||
description: Property tax exempt parcel indicator | ||
- name: is_filler_class | ||
description: Parcel has a placeholder class of '999' | ||
- name: is_filler_pin | ||
description: Parcel has a placeholder PIN that contains '999' | ||
- name: is_leasehold | ||
description: | | ||
Leasehold parcel indicator. A leasehold is a form of land | ||
tenure or property tenure where one party buys the right to occupy | ||
land or a building for a given time. The CCAO records leaseholds as | ||
a value of '8' for the 11th digit of a parcel's PIN. | ||
- name: is_mixed_use | ||
description: | | ||
Parcel has both an explicitly residental class in dweldat or oby and a | ||
commercial class in comdat, or a residential class in dweldat and a | ||
commercial class in oby. | ||
- name: is_parking_space | ||
description: '{{ doc("shared_column_is_parking_space") }}' | ||
- name: is_railroad | ||
description: Parcel is class 'RR' | ||
- name: is_weird | ||
description: Parcel is in `ccao.pin_test` | ||
- name: is_zero_bill | ||
description: Parcel with a $0 property tax bill indicator | ||
- name: oby_cdu_code | ||
description: CDU from `iasworld.oby` table | ||
- name: oby_cdu_description | ||
description: CDU code description for `oby_cdu_code` | ||
- name: pardat_note | ||
description: Pardat note field 2 | ||
- name: parking_space_flag_reason | ||
description: '{{ doc("shared_column_parking_space_flag_reason") }}' | ||
- name: pin | ||
description: '{{ doc("shared_column_pin") }}' | ||
- name: row_id | ||
description: '{{ doc("shared_column_row_id") }}' | ||
- name: weird_flag_reason | ||
description: | | ||
Test type field from `ccao.test_pin`. Describes why a given parcel | ||
is used for testing. | ||
- name: year | ||
description: '{{ doc("shared_column_year") }}' |