Profile
Seven reports, produced from live introspection of the 6 selected tables. Click any row in PR-001 to see column-level detail — the same mechanism works for every table.
Re-architect
Per-table schema design. Select a table below — every table gets the same structured recommendation, with whatever levers actually apply to it.
Data Model & Lineage
Two questions, answered visually: what does the designed ClickHouse data model actually look like (this is greenfield — there's no existing target to map onto, so this is a design decision, not a translation), and what breaks downstream if it changes.
Target data model — designed, not mapped
orders → customers was a BigQuery JOIN, it's a ClickHouse Dictionary lookup here. line_items was a joined table, it's an embedded Nested column here. Per CHMB: "design from queries, not from schemas."
erDiagram
CUSTOMERS {
UInt64 customer_id PK
String email
LowCardinality segment
}
PRODUCTS {
UInt32 product_id PK
LowCardinality category
}
ORDERS {
UInt64 order_id PK
UInt64 customer_id FK
Date order_date
Decimal total_amount
Nested line_items
}
ORDER_ITEMS {
UInt64 order_id FK
LowCardinality sku FK
Decimal unit_price
}
SESSIONS {
UInt64 session_id PK
DateTime session_start
LowCardinality traffic_source
}
WEB_EVENTS {
UInt64 event_id PK
UInt64 session_id FK
JSON payload
}
REVENUE_MV {
LowCardinality category
AggregateFunction revenue_state
}
ORDERS ||--o{ ORDER_ITEMS : "ARRAY JOIN (was UNNEST)"
ORDERS }o--|| CUSTOMERS : "Dictionary dictGet (was JOIN)"
ORDER_ITEMS }o--|| PRODUCTS : "Dictionary dictGet (was JOIN)"
SESSIONS ||--o{ WEB_EVENTS : "ORDER BY session_id"
ORDERS ||--o{ REVENUE_MV : "feeds, incremental"
ORDER_ITEMS ||--o{ REVENUE_MV : "feeds, incremental"
Lineage & downstream impact — source → target → consumers
orders' schema changes, what else has to change? This graph is PR-005 (internal dependencies) and PR-006 (third-party integrations) unified into one traversable chain — the two reports alone only show one hop each.
flowchart LR
subgraph SRC["BigQuery — source"]
S_CUST[customers]
S_PROD[products]
S_ORD[orders]
S_OI[order_items]
S_SESS[sessions]
S_WE[web_events]
end
subgraph TGT["ClickHouse — target, designed"]
T_CUST[customers]
T_PROD[products]
T_ORD[orders]
T_OI[order_items]
T_SESS[sessions]
T_WE[web_events]
T_MV[revenue_by_category_mv]
T_FUNNEL[funnel_mv]
end
subgraph DS["Downstream consumers"]
LOOKER["Looker: Revenue Overview
12 tiles — re-architect"]
DBT["dbt: 34 models
incl. stg_orders.sql — re-architect"]
FIVET["Fivetran: Shopify feed
re-point to ClickPipes"]
end
FIVET -.writes.-> S_ORD
FIVET -.writes.-> S_OI
S_CUST --> T_CUST
S_PROD --> T_PROD
S_ORD --> T_ORD
S_OI --> T_OI
S_SESS --> T_SESS
S_WE --> T_WE
T_ORD --> T_MV
T_OI --> T_MV
T_PROD -.dictionary.-> T_MV
T_WE --> T_FUNNEL
T_ORD --> LOOKER
T_ORD --> DBT
orders' schema and the blast radius is revenue_by_category_mv (internal, auto-handled) plus the Looker dashboard and the stg_orders.sql dbt model (external, both tagged re-architect in PR-006 — not automatic, need explicit rework). Materialize's Query Result Regression check (next steps) should replay these specific downstream queries, not just internal ones — a report can keep running post-migration and still silently return wrong numbers.Implement & Stream
Six tables, each moving through the same six-stage pipeline: design → DDL & validate → schema translation → ingestion pipeline → transfer strategy → streaming. Click a table below to follow its stage-by-stage detail.
Pipeline detail
Materialize
Correctness proof per table — not just a row count. Click a table to expand its validation detail.
Benchmark & Optimize
Same query, both systems, timed server-side — every query gets the same measurement, not just the headline one.