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

improve cdbg exports #1364

Merged
merged 6 commits into from
Jan 6, 2025
Merged

improve cdbg exports #1364

merged 6 commits into from
Jan 6, 2025

Conversation

damonmcc
Copy link
Member

@damonmcc damonmcc commented Jan 3, 2025

related to #1348

all builds on this branch here

probably easier to review each commit to see changes

@damonmcc damonmcc marked this pull request as ready for review January 3, 2025 14:14
@damonmcc damonmcc requested a review from fvankrieken January 3, 2025 14:14
@@ -66,11 +66,11 @@ models:
data_type: string
tests: [not_null]

- name: cdbg_borough
- name: cdbg_boroughs
description: Borough and city-wide Community Development Block Grant (CDBG) details
config:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just drop the config field entirely?

Copy link
Member Author

@damonmcc damonmcc Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was gonna try enforcing them next, but in another PR

edit: gonna do the contracts here

@damonmcc damonmcc marked this pull request as draft January 3, 2025 21:00
pinning to HUD source data version was recommended by OMB
@damonmcc damonmcc changed the title export cdbg_boroughs improve cdbg exports Jan 6, 2025
@damonmcc damonmcc marked this pull request as ready for review January 6, 2025 03:47
@damonmcc damonmcc requested a review from fvankrieken January 6, 2025 13:24
borough_code,
tract,
block_group,
round(total_floor_area::numeric)::integer AS total_floor_area,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the data type before the cast to numeric?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess double precision - I forgot you can't just round that.

I do think you can just cast a double precision to integer to round though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha. I wasn't sure if casting to integer would round correcting, always round in one direction, or truncate

@damonmcc damonmcc merged commit 9d4ddc7 into main Jan 6, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants