[PULL REQUEST] Update DOF Sources#235
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the CA Department of Finance source identifiers used across the SQL queries so the 2025 Annual Population and Housing Estimates run uses the most recently released DOF products (E-8 May 2025, E-5 Vintage 2026, and P3 Vintage 2026). Also extends the "Unincorporated" area-name mapping to accommodate the new estimates' labeling.
Changes:
- Bumped
estimates_idfrom 24→27 (E-8) and 25→29 (E-5) in the three jurisdiction control SQL files, with updated comments reflecting the new vintage. - Expanded the area_name CASE to also match
'Unincorporated'(in addition to'Balance of County') when mapping to "Unincorporated San Diego County". - Bumped
projections_idfrom 11→16 (P3 Vintage 2026) in the regional ASE total query.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| sql/pop_type/get_jurisdiction_controls_hhp.sql | Updates E-8/E-5 IDs and adds 'Unincorporated' area_name mapping for household population controls. |
| sql/pop_type/get_jurisdiction_controls_gq.sql | Updates E-8/E-5 IDs and adds 'Unincorporated' area_name mapping for group quarters controls. |
| sql/hs_hh/get_jurisdiction_controls_hh.sql | Updates E-8/E-5 IDs and adds 'Unincorporated' area_name mapping for vacancy rate controls. |
| sql/ase/get_region_ase_total.sql | Updates P3 projections ID to the Vintage 2026 release for region ASE totals. |
Note: reporting/check_controls_jurisdiction.sql still references the prior IDs (24 and 25). This file is outside this PR's diff, but you may want to verify whether it should also be updated as part of this DOF source refresh.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Are we 100% certain that these are the actual final versions? I know DOF sometimes releases fixes or revisions of previously released data. Why don't we wait until we are actually running 2025 Estimates to update these values? |
|
If there's a newer release we will load and update. I highly doubt there will be, but we can always update later. |
Describe this pull request. What changes are being made?
As we prepare to run and release the 2025 Annual Population and Housing Estimates we need to ensure all Estimates and Projections we use from the California Department of Finance (CA DOF) have been updated to the most recently released versions.
What issues does this pull request address?
closes #234
Additional context
https://dof.ca.gov/forecasting/demographics/estimates/
https://dof.ca.gov/forecasting/demographics/projections/
https://github.com/SANDAG/CA-DOF
The most recently released products are as follows:
[projections_id]=16[estimates_id]=29[estimates_id] = 27