Skip to content

Commit 89abff8

Browse files
Merge pull request #31 from Eveerasingam/Eveerasingam-updateAssociatedRepo
Eveerasingam update associated repo
2 parents cb05456 + 7652c33 commit 89abff8

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

steps/02_access_marketplace_data.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ USE ROLE ACCOUNTADMIN;
44
SELECT * FROM oag_flight_emissions_data_sample.public.estimated_emissions_schedules_sample LIMIT 100;
55
SELECT * FROM oag_flight_status_data_sample.public.flight_status_latest_sample LIMIT 100;
66
SELECT * FROM global_weather__climate_data_for_bi.standard_tile.forecast_day LIMIT 100;
7-
SELECT * FROM global_government.cybersyn.datacommons_timeseries LIMIT 100;
8-
SELECT * FROM us_addresses__poi.cybersyn.point_of_interest_index LIMIT 100;
7+
SELECT * FROM SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.DATACOMMONS_TIMESERIES LIMIT 100;
8+
SELECT * FROM SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.POINT_OF_INTEREST_INDEX LIMIT 100;

steps/03_harmonize_data.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def main(df):
150150
group by postal_code
151151
""",
152152
),
153-
# We use the data provided by Cybersyn to limit our pipeline to US cities with atleast
153+
# We use the data provided by Snowflake Public Data to limit our pipeline to US cities with atleast
154154
# 100k residents to enjoy all the benefits a big city provides during our vacation.
155155
View(
156156
name="major_us_cities",
@@ -164,10 +164,10 @@ def main(df):
164164
geo.geo_id,
165165
geo.geo_name,
166166
max(ts.value) total_population
167-
from global_government.cybersyn.datacommons_timeseries ts
168-
join global_government.cybersyn.geography_index geo
167+
from SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.DATACOMMONS_TIMESERIES ts
168+
join SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.GEOGRAPHY_INDEX geo
169169
on ts.geo_id = geo.geo_id
170-
join global_government.cybersyn.geography_relationships geo_rel
170+
join SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.GEOGRAPHY_RELATIONSHIPS geo_rel
171171
on geo_rel.related_geo_id = geo.geo_id
172172
where true
173173
and ts.variable_name = 'Total Population, census.gov'
@@ -179,7 +179,7 @@ def main(df):
179179
order by total_population desc
180180
""",
181181
),
182-
# Using the geography relationships provided by Cybersyn we collect all the
182+
# Using the geography relationships provided by Snowflake Public Data we collect all the
183183
# zip codes belonging to a city.
184184
View(
185185
name="zip_codes_in_city",
@@ -195,8 +195,8 @@ def main(df):
195195
city.geo_name city_geo_name,
196196
city.related_geo_id zip_geo_id,
197197
city.related_geo_name zip_geo_name
198-
from us_addresses__poi.cybersyn.geography_relationships country
199-
join us_addresses__poi.cybersyn.geography_relationships city
198+
from SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.GEOGRAPHY_RELATIONSHIPS country
199+
join SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.GEOGRAPHY_RELATIONSHIPS city
200200
on country.related_geo_id = city.geo_id
201201
where true
202202
and country.geo_id = 'country/USA'

steps/05_database_change_management.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ View(
2020
count(case when category_main = 'Aquarium' THEN 1 END) aquarium_cnt,
2121
count(case when category_main = 'Zoo' THEN 1 END) zoo_cnt,
2222
count(case when category_main = 'Korean Restaurant' THEN 1 END) korean_restaurant_cnt,
23-
from us_addresses__poi.cybersyn.point_of_interest_index poi
24-
join us_addresses__poi.cybersyn.point_of_interest_addresses_relationships poi_add
23+
from SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.POINT_OF_INTEREST_INDEX poi
24+
join SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.POINT_OF_INTEREST_ADDRESSES_RELATIONSHIPS poi_add
2525
on poi_add.poi_id = poi.poi_id
26-
join us_addresses__poi.cybersyn.us_addresses address
26+
join SNOWFLAKE_PUBLIC_DATA_FREE.PUBLIC_DATA_FREE.US_ADDRESSES address
2727
on address.address_id = poi_add.address_id
2828
join major_us_cities city on city.geo_id = address.id_city
2929
where true

0 commit comments

Comments
 (0)