-
Notifications
You must be signed in to change notification settings - Fork 1
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
improve cdbg exports #1364
Conversation
8e4f5a1
to
26beda3
Compare
26beda3
to
f3f2fd0
Compare
@@ -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: |
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.
Let's just drop the config field entirely?
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.
I was gonna try enforcing them next, but in another PR
edit: gonna do the contracts here
4680d8f
to
4b55c76
Compare
4b55c76
to
574830f
Compare
pinning to HUD source data version was recommended by OMB
borough_code, | ||
tract, | ||
block_group, | ||
round(total_floor_area::numeric)::integer AS total_floor_area, |
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.
what's the data type before the cast to numeric?
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.
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
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.
gotcha. I wasn't sure if casting to integer would round correcting, always round in one direction, or truncate
related to #1348
all builds on this branch here
probably easier to review each commit to see changes