Skip to content

Commit

Permalink
Merge pull request #202 from cagov/update-footprint-source-table-name
Browse files Browse the repository at this point in the history
Correct mart table name
  • Loading branch information
britt-allen authored Sep 11, 2023
2 parents 1fa2cd7 + 37c63f3 commit 69f7d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/geo/write_building_footprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def write_building_footprints(conn):

counties = """
SELECT DISTINCT "county_fips"
FROM ANALYTICS_DEV.ANALYTICS.GEO_REFERENCE__BUILDING_FOOTPRINTS_WITH_BLOCKS
FROM ANALYTICS_DEV.ANALYTICS.GEO_REFERENCE__BUILDING_FOOTPRINTS_WITH_TIGER
ORDER BY 1 ASC
"""

Expand All @@ -28,7 +28,7 @@ def write_building_footprints(conn):
for index, county in enumerate(counties):
sql_table = f"""
SELECT *
FROM ANALYTICS_DEV.ANALYTICS.GEO_REFERENCE__BUILDING_FOOTPRINTS_WITH_BLOCKS
FROM ANALYTICS_DEV.ANALYTICS.GEO_REFERENCE__BUILDING_FOOTPRINTS_WITH_TIGER
WHERE "county_fips" = {county}
"""
df = conn.cursor().execute(sql_table).fetch_pandas_all()
Expand Down

0 comments on commit 69f7d43

Please sign in to comment.