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

12
sql/01-raw.sql Normal file
View file

@ -0,0 +1,12 @@
-- Снимок tiny содержит восемь таблиц. Схемы получают отдельные префиксы Iceberg.
CREATE SCHEMA IF NOT EXISTS iceberg.tpch_raw;
CREATE SCHEMA IF NOT EXISTS iceberg.tpch_vault;
CREATE SCHEMA IF NOT EXISTS iceberg.tpch_bi;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.customer AS SELECT * FROM tpch.tiny.customer;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.lineitem AS SELECT * FROM tpch.tiny.lineitem;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.nation AS SELECT * FROM tpch.tiny.nation;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.orders AS SELECT * FROM tpch.tiny.orders;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.part AS SELECT * FROM tpch.tiny.part;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.partsupp AS SELECT * FROM tpch.tiny.partsupp;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.region AS SELECT * FROM tpch.tiny.region;
CREATE TABLE IF NOT EXISTS iceberg.tpch_raw.supplier AS SELECT * FROM tpch.tiny.supplier;