Bruin CLI Step 3 of 4

Shopify to ClickHouse with Bruin

1) Inspect the conformed models

T2 is the layer that your analytics work should normally start from. Each file is a clickhouse.sql table with a depends list, a primary key, typed columns, and an explicit refresh policy.

AssetTableWhat it doesDirect dependencies
t2_inventory_items.sqlshopify.t2_inventory_itemsExtracts inventory item, SKU, variant, price, cost, and sellable-quantity attributest1_inventory_items
t2_products.sqlshopify.t2_productsBuilds the product catalogue and enriches it with current inventoryt1_products, t2_inventory_items
t2_orders.sqlshopify.t2_ordersProduces one clean order row with lifecycle, channel, currency, and financial measurest1_orders
t2_order_line_items.sqlshopify.t2_order_line_itemsParses nested order lines into one row per item and allocates recognized revenuet1_orders, t2_orders
t2_customers.sqlshopify.t2_customersProduces customer consent, geography, lifecycle, and completed-order measures without exposing email or address valuest1_customers, t2_orders

The order model has to finish before line items and customer measures. Inventory items have to finish before products. You do not need to manually order those commands because the depends blocks make that lineage part of the project.

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.