Skip to content

Commit 4ce7cfe

Browse files
NTD: fix agency field in employees_by_agency tables (#3849)
1 parent 4cb4f5a commit 4ce7cfe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

airflow/dags/create_external_tables/ntd_data_products/multi_year__employees_by_agency.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ destination_project_dataset_table: "external_ntd__annual_reporting.multi_year__e
1212
prefix_bucket: false
1313
post_hook: SELECT * FROM `{{ get_project_id() }}`.external_ntd__annual_reporting.multi_year__employees_by_agency LIMIT 1;
1414
schema_fields:
15-
- name: agency
15+
- name: max_agency_1
1616
type: STRING
1717
- name: avgwagerate
1818
type: FLOAT

warehouse/models/mart/ntd_annual_reporting/fct_employees_by_agency.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ current_dim_organizations AS (
1313

1414
fct_employees_by_agency AS (
1515
SELECT
16-
stg.agency,
16+
stg.max_agency_1,
1717
stg.avgwagerate,
1818
stg.count_capital_labor_count_q,
1919
stg.count_capital_labor_hours_q,

warehouse/models/staging/ntd_annual_reporting/stg_ntd__employees_by_agency.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ stg_ntd__employees_by_agency AS (
1616
)
1717

1818
SELECT
19-
{{ trim_make_empty_string_null('agency') }} AS agency,
19+
{{ trim_make_empty_string_null('max_agency_1') }} AS max_agency_1,
2020
SAFE_CAST(avgwagerate AS FLOAT64) AS avgwagerate,
2121
SAFE_CAST(count_capital_labor_count_q AS NUMERIC) AS count_capital_labor_count_q,
2222
SAFE_CAST(count_capital_labor_hours_q AS NUMERIC) AS count_capital_labor_hours_q,

0 commit comments

Comments
 (0)