CRS Summary - order_line_items Table
This page documents the order_line_items table from the CRS Summary dataset. This table contains one row per line item per order, including product details and physical shipping attributes.
Table Overview
Attribute | Value |
|---|---|
Table Name | crs_summary_20262601_order_line_items |
Database | fenix_tms_analytics_prod |
Storage Location | s3://fenixlake/l1_processing/crs_summary/order_line_items/ |
File Format | Parquet (Snappy compressed) |
Row Grain | One row per (order_id, line_item_id) |
Primary Key | order_id + line_item_id (composite) |
Approximate Volume |
|
Source System | Elasticsearch (CRS Summary Index) |
Refresh Frequency | Daily (Incremental) |
Business Description
The order_line_items table provides detailed product-level information for each item in an order. It combines:
Commercial Line Item Data: Product IDs, SKUs, prices, quantities from the order
Physical Product Data: Weight and dimensions from the shipment product catalog
Data Sources (within the JSON):
order_summary.shipping_info.line_items[]- Commercial order datacrs_shipment_summary.shipment_summary.product_infos[]- Physical product attributes
Source Mapping
Target Column | Source JSON Path | Transformation |
|---|---|---|
doc_id |
| Direct mapping |
source_id |
| Direct mapping |
source_order_id |
| Direct mapping |
source_order_number |
| Direct mapping |
order_id |
| Direct mapping |
line_item_id |
| EXPLODE array, extract ids |
sku |
| EXPLODE array, extract sku |
product_id |
| EXPLODE array |
variant_id |
| EXPLODE array (note: camelCase in source) |
vendor |
| EXPLODE array |
item_name |
| EXPLODE array |
quantity |
| EXPLODE array |
unit_price_amount |
| EXPLODE array, nested extraction |
currency |
| EXPLODE array, nested extraction |
requires_shipping |
| EXPLODE array |
gift_card |
| EXPLODE array |
lead_time |
| JOIN on (order_id, sku) |
gift_sku |
| JOIN on (order_id, sku) |
item_weight_value |
| JOIN on (order_id, sku) |
item_weight_unit |
| JOIN on (order_id, sku) |
item_length |
| JOIN on (order_id, sku) |
item_width |
| JOIN on (order_id, sku) |
item_height |
| JOIN on (order_id, sku) |
item_dimension_unit |
| JOIN on (order_id, sku) |
client_name |
| Enriched: From |
order_year |
| Derived: |
order_month |
| Derived: |
order_date |
| Derived: |
ingested_at_utc |
| System: |
Column Definitions
Identifier Columns
Column Name | Data Type | Nullable | Description | Example |
|---|---|---|---|---|
doc_id | STRING | No | Elasticsearch document ID | 9837237895522 |
source_id | STRING | No | Source system record ID | 9837237895522 |
source_order_id | STRING | No | Original order ID from source | 9837237895522 |
source_order_number | STRING | No | Human-readable order number | #26401760 |
order_id | STRING | No | Order identifier (FK to order_summary) | 9837237895522 |
line_item_id | STRING | No | Unique line item identifier within the order | 31613392617826 |
Product Identification Columns
Column Name | Data Type | Nullable | Description | Example |
|---|---|---|---|---|
sku | STRING | Yes | Stock Keeping Unit code | A-E-A-400L27-MARL-01P-BURGU-XS-R |
product_id | STRING | Yes | Product catalog ID | 7682993946796 |
variant_id | STRING | Yes | Product variant ID | 47902442553698 |
vendor | STRING | Yes | Product vendor/brand | bombas |
item_name | STRING | Yes | Full product name with variant details | Women's Gripper Slipper - burgundy / xs |
Order Quantity & Pricing Columns
Column Name | Data Type | Nullable | Description | Example |
|---|---|---|---|---|
quantity | INTEGER | Yes | Quantity ordered of this line item | 1 |
unit_price_amount | DOUBLE | Yes | Price per unit | 50.0 |
currency | STRING | Yes | Currency code | USD |
Shipping Flag Columns
Column Name | Data Type | Nullable | Description | Example |
|---|---|---|---|---|
requires_shipping | BOOLEAN | Yes | Whether item requires physical shipping | true |
gift_card | BOOLEAN | Yes | Whether item is a gift card (no shipping) | false |
gift_sku | BOOLEAN | Yes | Whether SKU is marked as gift in catalog | false |
Product Physical Attributes (from product_infos)
Column Name | Data Type | Nullable | Description | Example |
|---|---|---|---|---|
lead_time | INTEGER | Yes | Product lead time in days | 0 |
item_weight_value | DOUBLE | Yes | Individual item weight | 0.45 |
item_weight_unit | STRING | Yes | Weight unit of measure | LB |
item_length | DOUBLE | Yes | Item length dimension | 12.2 |
item_width | DOUBLE | Yes | Item width dimension | 6.0 |
item_height | DOUBLE | Yes | Item height dimension | 2.8 |
item_dimension_unit | STRING | Yes | Dimension unit of measure | IN |
Partition Columns
Column Name | Data Type | Nullable | Description | Example |
|---|---|---|---|---|
client_name | STRING | No | Client/tenant identifier | |
order_year | INTEGER | No | Year order was created | 2025 |
order_month | INTEGER | No | Month order was created (1-12) |
