refactor(modeling): улучшены учебные материалы DWH по результатам ревью

- Зачем:
  - убрать путаницу, дублирование и неточности в демо-скриптах и домашке
- Что:
  - CSV: заголовок load_ts → _load_ts во всех файлах (совпадает с именем в таблицах)
  - домашка: убраны оговорки о расхождении load_ts/_load_ts, добавлена ссылка на эталонное решение
  - 09_dml_hw_customer_status_solution.sql: эталонное решение скопировано из ветки solution/hw_customer_status в основную
  - 02_dml: добавлена карта загрузки в шапку (что откуда строится)
  - 05_ddl_dm + 06_dml_dm: total_orders → total_line_items (название точнее отражает содержимое)
- Проверка:
  - визуальная проверка diff, скрипты не запускались (демо-стенд не поднят)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 14:31:10 +03:00
co-authored by Claude Opus 4.6
parent 8973eea064
commit 45f8f74378
9 changed files with 303 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
customer_id,status,event_ts,_load_id,load_ts
customer_id,status,event_ts,_load_id,_load_ts
101,new,2024-01-01 09:00:00,batch_20240101_1000,2024-01-01 10:00:00
101,active,2024-02-15 10:30:00,batch_20240215_1100,2024-02-15 11:00:00
101,vip,2024-05-10 11:00:00,batch_20240510_1200,2024-05-10 12:00:00
1 customer_id status event_ts _load_id load_ts _load_ts
2 101 new 2024-01-01 09:00:00 batch_20240101_1000 2024-01-01 10:00:00
3 101 active 2024-02-15 10:30:00 batch_20240215_1100 2024-02-15 11:00:00
4 101 vip 2024-05-10 11:00:00 batch_20240510_1200 2024-05-10 12:00:00
@@ -1,4 +1,4 @@
customer_id,status,event_ts,_load_id,load_ts
customer_id,status,event_ts,_load_id,_load_ts
101,active,2024-11-15 09:00:00,batch_20241115_1000,2024-11-15 10:00:00
102,active,2024-05-05 09:30:00,batch_20240505_1000,2024-05-05 10:00:00
103,active,2024-03-20 12:00:00,batch_20240320_1300,2024-03-20 13:00:00
1 customer_id status event_ts _load_id load_ts _load_ts
2 101 active 2024-11-15 09:00:00 batch_20241115_1000 2024-11-15 10:00:00 2024-11-15 10:00:00
3 102 active 2024-05-05 09:30:00 batch_20240505_1000 2024-05-05 10:00:00 2024-05-05 10:00:00
4 103 active 2024-03-20 12:00:00 batch_20240320_1300 2024-03-20 13:00:00 2024-03-20 13:00:00
+1 -1
View File
@@ -1,4 +1,4 @@
customer_id,email,phone,city,event_ts,_load_id,load_ts
customer_id,email,phone,city,event_ts,_load_id,_load_ts
101,a@ex.com,700,Москва,2024-01-01,batch_20240101_0800,2024-01-01 08:00
102,c@ex.com,701,СПб,2024-01-01,batch_20240101_0800,2024-01-01 08:00
101,b@ex.com,700,Москва,2024-05-16,batch_20240516_0800,2024-05-16 08:00
1 customer_id email phone city event_ts _load_id load_ts _load_ts
2 101 a@ex.com 700 Москва 2024-01-01 batch_20240101_0800 2024-01-01 08:00 2024-01-01 08:00
3 102 c@ex.com 701 СПб 2024-01-01 batch_20240101_0800 2024-01-01 08:00 2024-01-01 08:00
4 101 b@ex.com 700 Москва 2024-05-16 batch_20240516_0800 2024-05-16 08:00 2024-05-16 08:00