Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ models:
us_bls_oes:
+materialized: table
+schema: us_bls_oes
us_census_bps:
+materialized: table
+schema: us_census_bps
us_fdic_bankfind:
+materialized: table
+schema: us_fdic_bankfind
Expand Down
6 changes: 6 additions & 0 deletions models/us_census_bps/code/architecture/dicionario.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
id_tabela,STRING,Slug of the us_census_bps table the dictionary entry describes,,no,,,no,,id_tabela
nome_coluna,STRING,Name of the column the dictionary entry describes,,no,,,no,,nome_coluna
chave,STRING,Coded value (key) exactly as stored in the data,,no,,,no,,chave
cobertura_temporal,STRING,Temporal coverage of the key,,no,,,no,,cobertura_temporal
valor,STRING,Human-readable label corresponding to the coded value,,no,,,no,,valor
14 changes: 14 additions & 0 deletions models/us_census_bps/code/architecture/permit_cbsa_annual.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
year,INT64,Reference year of the survey period,2003(1)2025,no,br_bd_diretorios_data_tempo.ano:ano,year,no,Partition column,Survey Date
cbsa_id,STRING,Five-digit Core Based Statistical Area code,,no,diretorios_us.cbsa_2023:id_cbsa,,no,,CBSA Code
csa_id,STRING,Three-digit Combined Statistical Area code the CBSA belongs to,,no,,,no,"Null where the source publishes 999, meaning the CBSA is not part of a CSA",CSA Code
cbsa_type,STRING,Header code distinguishing metropolitan from micropolitan areas,2024(1)2025,yes,,,no,"Published from January 2024 only, when micropolitan areas were added to the file. Null before that",HHEADER
full_monthly_coverage,STRING,Whether the area is completely covered by monthly reporting permit-issuing places,2003(1)2023,yes,,,no,"Published up to 2023 only, in the field replaced by cbsa_type from January 2024. Null from 2024 on",MONCOV
structure_type,STRING,"Type of residential structure, by the number of housing units in the building",,yes,,,no,"Census structure type codes: 101 single-family, 103 two-family, 104 three- and four-family, 105 five-or-more-family. Summing the four codes reproduces the published total for the geography",column block
cbsa_name,STRING,"Name of the Core Based Statistical Area, as published",,no,,,no,,CBSA Name
buildings,INT64,Number of buildings authorized by building permits,,no,,building,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Bldgs
units,INT64,Number of housing units authorized by building permits,,no,,housing_unit,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Units
valuation,INT64,"Construction valuation of the buildings authorized, in US dollars",,no,,usd,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Value
buildings_reported,INT64,"Number of buildings authorized, counting reporting permit offices only",,no,,building,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Bldgs rep
units_reported,INT64,"Number of housing units authorized, counting reporting permit offices only",,no,,housing_unit,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Units rep
valuation_reported,INT64,"Construction valuation of the buildings authorized, in US dollars, counting reporting permit offices only",,no,,usd,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Value rep
15 changes: 15 additions & 0 deletions models/us_census_bps/code/architecture/permit_cbsa_monthly.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
year,INT64,Reference year of the survey period,2004(1)2026,no,br_bd_diretorios_data_tempo.ano:ano,year,no,Partition column,Survey Date
month,INT64,"Reference month of the survey period, from 1 to 12",2004(1)2026,no,br_bd_diretorios_data_tempo.mes:mes,month,no,,Survey Date
cbsa_id,STRING,Five-digit Core Based Statistical Area code,,no,diretorios_us.cbsa_2023:id_cbsa,,no,,CBSA Code
csa_id,STRING,Three-digit Combined Statistical Area code the CBSA belongs to,,no,,,no,"Null where the source publishes 999, meaning the CBSA is not part of a CSA",CSA Code
cbsa_type,STRING,Header code distinguishing metropolitan from micropolitan areas,2024(1)2025,yes,,,no,"Published from January 2024 only, when micropolitan areas were added to the file. Null before that",HHEADER
full_monthly_coverage,STRING,Whether the area is completely covered by monthly reporting permit-issuing places,2003(1)2023,yes,,,no,"Published up to 2023 only, in the field replaced by cbsa_type from January 2024. Null from 2024 on",MONCOV
structure_type,STRING,"Type of residential structure, by the number of housing units in the building",,yes,,,no,"Census structure type codes: 101 single-family, 103 two-family, 104 three- and four-family, 105 five-or-more-family. Summing the four codes reproduces the published total for the geography",column block
cbsa_name,STRING,"Name of the Core Based Statistical Area, as published",,no,,,no,,CBSA Name
buildings,INT64,Number of buildings authorized by building permits,,no,,building,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Bldgs
units,INT64,Number of housing units authorized by building permits,,no,,housing_unit,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Units
valuation,INT64,"Construction valuation of the buildings authorized, in US dollars",,no,,usd,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Value
buildings_reported,INT64,"Number of buildings authorized, counting reporting permit offices only",,no,,building,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Bldgs rep
units_reported,INT64,"Number of housing units authorized, counting reporting permit offices only",,no,,housing_unit,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Units rep
valuation_reported,INT64,"Construction valuation of the buildings authorized, in US dollars, counting reporting permit offices only",,no,,usd,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Value rep
14 changes: 14 additions & 0 deletions models/us_census_bps/code/architecture/permit_county_annual.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
year,INT64,Reference year of the survey period,1990(1)2025,no,br_bd_diretorios_data_tempo.ano:ano,year,no,Partition column,Survey Date
county_id,STRING,"Five-digit FIPS county code, state code followed by county code",,no,diretorios_us.county:id_county,,no,,FIPS State + FIPS County
state_id,STRING,Two-digit FIPS state code,,no,diretorios_us.state:id_state,,no,,FIPS State
region_id,STRING,"Census region code, from 1 to 4",,yes,,,no,,Region Code
division_id,STRING,"Census division code, from 1 to 9",,yes,,,no,,Division Code
structure_type,STRING,"Type of residential structure, by the number of housing units in the building",,yes,,,no,"Census structure type codes: 101 single-family, 103 two-family, 104 three- and four-family, 105 five-or-more-family. Summing the four codes reproduces the published total for the geography",column block
county_name,STRING,"Name of the county, as published",,no,,,no,,County Name
buildings,INT64,Number of buildings authorized by building permits,,no,,building,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Bldgs
units,INT64,Number of housing units authorized by building permits,,no,,housing_unit,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Units
valuation,INT64,"Construction valuation of the buildings authorized, in US dollars",,no,,usd,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Value
buildings_reported,INT64,"Number of buildings authorized, counting reporting permit offices only",,no,,building,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Bldgs rep
units_reported,INT64,"Number of housing units authorized, counting reporting permit offices only",,no,,housing_unit,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Units rep
valuation_reported,INT64,"Construction valuation of the buildings authorized, in US dollars, counting reporting permit offices only",,no,,usd,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Value rep
15 changes: 15 additions & 0 deletions models/us_census_bps/code/architecture/permit_county_monthly.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
year,INT64,Reference year of the survey period,2000(1)2026,no,br_bd_diretorios_data_tempo.ano:ano,year,no,Partition column,Survey Date
month,INT64,"Reference month of the survey period, from 1 to 12",2000(1)2026,no,br_bd_diretorios_data_tempo.mes:mes,month,no,,Survey Date
county_id,STRING,"Five-digit FIPS county code, state code followed by county code",,no,diretorios_us.county:id_county,,no,,FIPS State + FIPS County
state_id,STRING,Two-digit FIPS state code,,no,diretorios_us.state:id_state,,no,,FIPS State
region_id,STRING,"Census region code, from 1 to 4",,yes,,,no,,Region Code
division_id,STRING,"Census division code, from 1 to 9",,yes,,,no,,Division Code
structure_type,STRING,"Type of residential structure, by the number of housing units in the building",,yes,,,no,"Census structure type codes: 101 single-family, 103 two-family, 104 three- and four-family, 105 five-or-more-family. Summing the four codes reproduces the published total for the geography",column block
county_name,STRING,"Name of the county, as published",,no,,,no,,County Name
buildings,INT64,Number of buildings authorized by building permits,,no,,building,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Bldgs
units,INT64,Number of housing units authorized by building permits,,no,,housing_unit,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Units
valuation,INT64,"Construction valuation of the buildings authorized, in US dollars",,no,,usd,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Value
buildings_reported,INT64,"Number of buildings authorized, counting reporting permit offices only",,no,,building,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Bldgs rep
units_reported,INT64,"Number of housing units authorized, counting reporting permit offices only",,no,,housing_unit,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Units rep
valuation_reported,INT64,"Construction valuation of the buildings authorized, in US dollars, counting reporting permit offices only",,no,,usd,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Value rep
12 changes: 12 additions & 0 deletions models/us_census_bps/code/architecture/permit_msa_annual.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
year,INT64,Reference year of the survey period,1980(1)2002,no,br_bd_diretorios_data_tempo.ano:ano,year,no,Partition column,Survey Date
msa_cmsa_id,STRING,Four-digit Metropolitan or Consolidated Metropolitan Statistical Area code,,no,,,no,"The pre-2004 MSA/CMSA code system, superseded by CBSA codes. The two are different geographies, not a renaming, so this table does not join to the CBSA tables or to the CBSA directory",MSA/CMSA Code
pmsa_id,STRING,Four-digit Primary Metropolitan Statistical Area code,,no,,,no,"Null where the source publishes 9999, meaning the area is not divided into PMSAs",PMSA Code
structure_type,STRING,"Type of residential structure, by the number of housing units in the building",,yes,,,no,"Census structure type codes: 101 single-family, 103 two-family, 104 three- and four-family, 105 five-or-more-family. Summing the four codes reproduces the published total for the geography",column block
msa_name,STRING,"Name of the metropolitan area, as published",,no,,,no,,MA Name
buildings,INT64,Number of buildings authorized by building permits,,no,,building,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Bldgs
units,INT64,Number of housing units authorized by building permits,,no,,housing_unit,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Units
valuation,INT64,"Construction valuation of the buildings authorized, in US dollars",,no,,usd,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Value
buildings_reported,INT64,"Number of buildings authorized, counting reporting permit offices only",,no,,building,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Bldgs rep
units_reported,INT64,"Number of housing units authorized, counting reporting permit offices only",,no,,housing_unit,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Units rep
valuation_reported,INT64,"Construction valuation of the buildings authorized, in US dollars, counting reporting permit offices only",,no,,usd,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Value rep
13 changes: 13 additions & 0 deletions models/us_census_bps/code/architecture/permit_msa_monthly.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name,bigquery_type,description,temporal_coverage,covered_by_dictionary,directory_column,measurement_unit,has_sensitive_data,observations,original_name
year,INT64,Reference year of the survey period,1988(1)2003,no,br_bd_diretorios_data_tempo.ano:ano,year,no,Partition column,Survey Date
month,INT64,"Reference month of the survey period, from 1 to 12",1988(1)2003,no,br_bd_diretorios_data_tempo.mes:mes,month,no,,Survey Date
msa_cmsa_id,STRING,Four-digit Metropolitan or Consolidated Metropolitan Statistical Area code,,no,,,no,"The pre-2004 MSA/CMSA code system, superseded by CBSA codes. The two are different geographies, not a renaming, so this table does not join to the CBSA tables or to the CBSA directory",MSA/CMSA Code
pmsa_id,STRING,Four-digit Primary Metropolitan Statistical Area code,,no,,,no,"Null where the source publishes 9999, meaning the area is not divided into PMSAs",PMSA Code
structure_type,STRING,"Type of residential structure, by the number of housing units in the building",,yes,,,no,"Census structure type codes: 101 single-family, 103 two-family, 104 three- and four-family, 105 five-or-more-family. Summing the four codes reproduces the published total for the geography",column block
msa_name,STRING,"Name of the metropolitan area, as published",,no,,,no,,MA Name
buildings,INT64,Number of buildings authorized by building permits,,no,,building,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Bldgs
units,INT64,Number of housing units authorized by building permits,,no,,housing_unit,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Units
valuation,INT64,"Construction valuation of the buildings authorized, in US dollars",,no,,usd,no,Estimate with imputation: reported data for responding permit offices plus imputed data for non-respondents. This is the series to use by default,Value
buildings_reported,INT64,"Number of buildings authorized, counting reporting permit offices only",,no,,building,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Bldgs rep
units_reported,INT64,"Number of housing units authorized, counting reporting permit offices only",,no,,housing_unit,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Units rep
valuation_reported,INT64,"Construction valuation of the buildings authorized, in US dollars, counting reporting permit offices only",,no,,usd,no,Reported only: counts data from responding permit offices and makes no imputation for non-respondents. Lower than the estimate with imputation,Value rep
Loading
Loading