Sync portfolio laboratory source

This commit is contained in:
portfolio 2026-11-26 13:13:28 +03:00
commit 24ddb06c6e
12 changed files with 246 additions and 0 deletions

5
sql/03-stage.sql Normal file
View file

@ -0,0 +1,5 @@
-- Одна исходная запись на пару (batch_id, orderkey). Демонстрация корректировки и возврата.
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.order_events AS
SELECT CAST(0 AS bigint) AS batch_id, orderkey, orderdate, orderstatus,
cast(totalprice AS decimal(15, 2)) AS totalprice
FROM iceberg.tpch_raw.orders;