Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
8 changes: 4 additions & 4 deletions module-1/api_integration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions module-1/hamburg_weather/pipeline/objects/views/views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down