From b17c166bd4a92951d82d71e2776a2b32954655db Mon Sep 17 00:00:00 2001 From: Jim Bettone <90066246+jimbettone@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:06:33 -0500 Subject: [PATCH 1/2] fix_missing_data --- .../pipeline/data/load_tasty_bytes.sql | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql b/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql index 4565f538..c4d2bab4 100644 --- a/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql +++ b/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql @@ -64,7 +64,8 @@ CREATE TABLE {{env}}_tasty_bytes.raw_pos.country iso_currency VARCHAR(3), iso_country VARCHAR(2), city VARCHAR(16777216), - city_population VARCHAR(16777216) + city_population VARCHAR(16777216), + city_id NUMBER(19,0) ); @@ -293,17 +294,8 @@ USE WAREHOUSE demo_build_wh; -- country table load --- COPY INTO {{env}}_tasty_bytes.raw_pos.country --- ( --- country_id, --- country, --- iso_currency, --- iso_country, --- city_id, --- city, --- city_population --- ) --- FROM @{{env}}_tasty_bytes.public.s3load/raw_pos/country/; +COPY INTO {{env}}_tasty_bytes.raw_pos.country +FROM @{{env}}_tasty_bytes.public.s3load/raw_pos/country/; -- franchise table load From f6b788b30d83c8bc649df184bd10df07406994a4 Mon Sep 17 00:00:00 2001 From: Jim Bettone <90066246+jimbettone@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:39:26 -0500 Subject: [PATCH 2/2] Change table creation to use CREATE OR ALTER syntax --- module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql b/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql index c4d2bab4..90036803 100644 --- a/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql +++ b/module-1/hamburg_weather/pipeline/data/load_tasty_bytes.sql @@ -57,7 +57,7 @@ raw zone table build -- country table build -- todo: complete table build -CREATE TABLE {{env}}_tasty_bytes.raw_pos.country +CREATE OR ALTER TABLE {{env}}_tasty_bytes.raw_pos.country ( country_id NUMBER(18,0), country VARCHAR(16777216), @@ -330,4 +330,4 @@ FROM @{{env}}_tasty_bytes.public.s3load/raw_pos/subset_order_header/; -- order_detail table load COPY INTO {{env}}_tasty_bytes.raw_pos.order_detail -FROM @{{env}}_tasty_bytes.public.s3load/raw_pos/subset_order_detail/; \ No newline at end of file +FROM @{{env}}_tasty_bytes.public.s3load/raw_pos/subset_order_detail/;