Skip to main content
Pro warehouses only. This table is not delivered on Foundation warehouses. On Foundation, start from obt_order_lines. See Foundation and Pro.
Order line dimension for product-level attributes at line grain.
  • Grain: One row per sm_order_line_key, plus one order-level row per order (see below). No canonical date: join to dim_orders for order dates.
  • Order-level row: Every order has one extra row, except orders still pending at the source. Its order_line_id and sku are NULL and its order_line_quantity is 0. Its order_line_gross_sales holds any order money that has no product to belong to. Filter order_line_id IS NOT NULL when you want product lines only.
  • Filters to start with: source_system for platform-specific line-item coverage.
  • Joins: dim_orders via sm_order_key (many:1); dim_product_variants via sm_product_variant_key (many:1).

Columns