diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2eea525d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/module-1/api_integration.sql b/module-1/api_integration.sql index 42c875f3..726e7d42 100644 --- a/module-1/api_integration.sql +++ b/module-1/api_integration.sql @@ -5,20 +5,20 @@ USE SCHEMA public; -- Create credentials CREATE OR REPLACE SECRET course_repo.public.github_pat TYPE = password - USERNAME = '' - PASSWORD = ''; + USERNAME = 'sh-am-si' + PASSWORD = ''; -- pat -- Create the API integration CREATE OR REPLACE API INTEGRATION API_PROVIDER = git_https_api - API_ALLOWED_PREFIXES = ('') -- URL to your GitHub profile + API_ALLOWED_PREFIXES = ('https://github.com/sh-am-si') -- URL to your GitHub profile ALLOWED_AUTHENTICATION_SECRETS = () ENABLED = TRUE; -- Create the git repository object CREATE OR REPLACE GIT REPOSITORY course_repo.public.advanced_data_engineering_snowflake API_INTEGRATION = -- Name of the API integration defined above - ORIGIN = '' -- Insert URL of forked repo + ORIGIN = 'https://github.com/sh-am-si/advanced-data-engineering-snowflake.git' -- Insert URL of forked repo GIT_CREDENTIALS = ; -- List the git repositories diff --git a/module-1/hamburg_weather/pipeline/objects/views/views.sql b/module-1/hamburg_weather/pipeline/objects/views/views.sql index a0f9d593..7888d2ed 100644 --- a/module-1/hamburg_weather/pipeline/objects/views/views.sql +++ b/module-1/hamburg_weather/pipeline/objects/views/views.sql @@ -7,8 +7,8 @@ SELECT TO_VARCHAR(hd.date_valid_std, 'YYYY-MM') AS yyyy_mm, pc.city_name AS city, c.country AS country_desc -FROM WEATHER_SOURCE_LLC_FROSTBYTE.onpoint_id.history_day hd -JOIN WEATHER_SOURCE_LLC_FROSTBYTE.onpoint_id.postal_codes pc +FROM FROSTBYTE_WEATHERSOURCE.onpoint_id.history_day hd +JOIN FROSTBYTE_WEATHERSOURCE.onpoint_id.postal_codes pc ON pc.postal_code = hd.postal_code AND pc.country = hd.country JOIN {{env}}_tasty_bytes.raw_pos.country c