From 2327de9d5945273f406d168c29e317023d6a0092 Mon Sep 17 00:00:00 2001 From: Volodya Byelobrov Date: Fri, 3 Apr 2026 12:49:48 +0200 Subject: [PATCH 1/2] api id updates --- .gitignore | 1 + module-1/api_integration.sql | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore 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..dff3a7cb 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 = '' + USERNAME = 'sh-am-si' PASSWORD = ''; -- 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 From b633823ac5c629f4425ecf21aa68d26170ed3f81 Mon Sep 17 00:00:00 2001 From: Volodya Byelobrov Date: Fri, 3 Apr 2026 12:52:29 +0200 Subject: [PATCH 2/2] renamed db --- module-1/api_integration.sql | 2 +- module-1/hamburg_weather/pipeline/objects/views/views.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module-1/api_integration.sql b/module-1/api_integration.sql index dff3a7cb..726e7d42 100644 --- a/module-1/api_integration.sql +++ b/module-1/api_integration.sql @@ -6,7 +6,7 @@ USE SCHEMA public; CREATE OR REPLACE SECRET course_repo.public.github_pat TYPE = password USERNAME = 'sh-am-si' - PASSWORD = ''; + PASSWORD = ''; -- pat -- Create the API integration CREATE OR REPLACE API INTEGRATION 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