-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create open_data
athena db
#691
Changes from 53 commits
b31690d
a8ae382
b781046
4fcff39
14e5021
bb04d72
255f9aa
8d4df29
267a952
1f65d65
4da462a
c715482
a072eda
587bf72
5b4a4be
3bcbf9d
fec9365
241e976
20448e7
84ea5ec
49c6009
03c472d
eb38047
985dd12
68e84cb
7335329
88a521f
7a77761
d324887
4f80b7d
1c819eb
7a57818
959d7d2
2a30f9d
244050f
d3f80b9
a16daee
1197a56
fda44cc
2b5a1e1
bcc03e7
29849b9
a996df5
179e50e
9ea9d4c
3af0898
6e8e9e6
1e303c3
fbc43c5
75b95b3
8b164e0
a7a7a70
45f7e43
f625870
226af86
2a2578e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`, `date_issued` | ||
**Primary Key**: `pin`, `permit_number` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This combo uniquely identifies rows and feels more intuitive to me:
Yields zero rows. I also needed to make sure that none of the columns I used for Socrata PKs had any NULL values, and this combo suits that condition. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Praise] Yup, this new version is correct. Thanks! |
||
{% enddocs %} | ||
|
||
# vw_pin_sale | ||
|
wrridgeway marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# vw_appeal | ||
|
||
{% docs view_vw_appeal %} | ||
Thin wrapper around `default.vw_pin_appeal` that powers the `Appeals` open data asset | ||
{% enddocs %} | ||
|
||
# vw_assessed_value | ||
|
||
{% docs view_vw_assessed_value %} | ||
Thin wrapper around `default.vw_pin_history` that powers the `Assess Values` open data asset | ||
{% enddocs %} | ||
|
||
# vw_parcel_address | ||
|
||
{% docs view_vw_parcel_address %} | ||
Thin wrapper around `default.vw_pin_address` that powers the `Parcel Addresses` open data asset | ||
{% enddocs %} | ||
|
||
# vw_parcel_proximity | ||
|
||
{% docs view_vw_parcel_proximity %} | ||
Thin wrapper around `proximity.vw_pin10_proximity` that powers the `Parcel Proximity` open data asset | ||
{% enddocs %} | ||
|
||
# vw_parcel_sale | ||
|
||
{% docs view_vw_parcel_sale %} | ||
Thin wrapper around `default.vw_pin_sale` that powers the `Parcel Sales` open data asset | ||
{% enddocs %} | ||
|
||
# vw_parcel_status | ||
|
||
{% docs view_vw_parcel_status %} | ||
Thin wrapper around `default.vw_pin_status` that powers the `Parcel Status` open data asset | ||
{% enddocs %} | ||
|
||
# vw_parcel_universe_current | ||
|
||
{% docs view_vw_parcel_universe_current %} | ||
Thin wrapper around `default.vw_pin_universe` that powers the `Parcel Universe (Current Year)` open data asset | ||
{% enddocs %} | ||
|
||
# vw_parcel_universe_historic | ||
|
||
{% docs view_vw_parcel_universe_historic %} | ||
Thin wrapper around `default.vw_pin_universe` that powers the `Parcel Universe (Historic)` open data asset | ||
{% enddocs %} | ||
|
||
# vw_permit | ||
|
||
{% docs view_vw_permit %} | ||
Thin wrapper around `default.vw_pin_permit` that powers the `Permits` open data asset | ||
{% enddocs %} | ||
|
||
# vw_property_tax_exempt_parcel | ||
|
||
{% docs view_vw_property_tax_exempt_parcel %} | ||
Thin wrapper around `default.vw_pin_exempt` that powers the `Property Tax-Exempt Parcels` open data asset | ||
{% enddocs %} | ||
|
||
# vw_res_condo_unit_char | ||
|
||
{% docs view_vw_res_condo_unit_char %} | ||
Thin wrapper around `default.vw_pin_condo_char` that powers the `Residential Condominium Unit Characteristics` open data asset | ||
{% enddocs %} | ||
|
||
# vw_sf_mf_improvement_char | ||
|
||
{% docs view_vw_sf_mf_improvement_char %} | ||
Thin wrapper around `default.vw_card_res_char` that powers the `Single and Multi-Family Improvement Characteristics` open data asset | ||
{% enddocs %} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mostly just a lift and shift from the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-- Copy of default.vw_pin_appeal that feeds the "Appeals" open data asset. | ||
SELECT | ||
pin || year || case_no AS row_id, | ||
pin, | ||
class, | ||
township_code, | ||
year, | ||
mailed_bldg, | ||
mailed_land, | ||
mailed_tot, | ||
certified_bldg, | ||
certified_land, | ||
certified_tot, | ||
case_no, | ||
appeal_type, | ||
change, | ||
reason_code1, | ||
reason_desc1, | ||
reason_code2, | ||
reason_desc2, | ||
reason_code3, | ||
reason_desc3, | ||
agent_code, | ||
agent_name, | ||
status | ||
FROM {{ ref('default.vw_pin_appeal') }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
-- Copy of default.vw_pin_history that feeds the "Assessed Values" open data | ||
-- asset. | ||
|
||
/* The following columns are not included in the open data asset, or are | ||
currently hidden: | ||
mailed_class | ||
certified_class | ||
board_class | ||
change_reason | ||
oneyr_pri_mailed_bldg | ||
oneyr_pri_mailed_land | ||
oneyr_pri_mailed_tot | ||
oneyr_pri_certified_bldg | ||
oneyr_pri_certified_land | ||
oneyr_pri_certified_tot | ||
oneyr_pri_board_bldg | ||
oneyr_pri_board_land | ||
oneyr_pri_board_tot | ||
oneyr_pri_change_reason | ||
twoyr_pri_mailed_bldg | ||
twoyr_pri_mailed_land | ||
twoyr_pri_mailed_tot | ||
twoyr_pri_certified_bldg | ||
twoyr_pri_certified_land | ||
twoyr_pri_certified_tot | ||
twoyr_pri_board_bldg | ||
twoyr_pri_board_land | ||
twoyr_pri_board_tot | ||
twoyr_pri_change_reason | ||
*/ | ||
wrridgeway marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
SELECT | ||
CONCAT(pin, year) AS row_id, | ||
pin, | ||
year, | ||
class, | ||
township_code, | ||
township_name, | ||
nbhd, | ||
mailed_bldg, | ||
mailed_land, | ||
mailed_tot, | ||
certified_bldg, | ||
certified_land, | ||
certified_tot, | ||
board_bldg, | ||
board_land, | ||
board_tot | ||
FROM {{ ref('default.vw_pin_history') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding both new assets and renaming the parcel universe assets here.