The same data lives in four systems.
Only one copy is governed.

This page is what Fadlie found on the DataHub showcase-ecommerce catalog. Nothing here was written by hand: it is generated from real responses of the deployed agent, captured on 2026-08-06, by scripts/faire-la-page.py.

Source & measurements Two-minute video The raw JSON behind this page

97pairs examinedstructure said “maybe”
84confirmed same datathe judge said yes
18groups of copiesacross platforms
373governance gapseach naming its source
46datasets affectedcounted by urn, not by name
1disagreementreported, not settled
An MCP client calls the Fadlie
server on AWS App Runner; the server reads DataHub Core on EC2, asks Amazon Nova
Micro on Bedrock which datasets hold the same data, and writes the missing
governance back — a dry run unless asked twice

The one it refuses to settle

A disagreement is not a gap. When two copies of the same data carry different values, there is nothing to copy — someone decided, or someone erred, and neither is an agent's call.

Conflicting domain

dbt/order_detailsData Platform Team
looker/order_detailsData Platform Team
looker/Order DetailsData Platform Team
snowflake/ORDER_DETAILSEcommerce Operations

left to a human: Fadlie reports the conflict, it does not pick

What is missing, and where it already exists

Every row below is a value one dataset carries and its twin does not. No value here was produced by a model. Each names the dataset it would be copied from — the type that carries a gap refuses to be constructed without a source. Open a dataset to see its own.

column description144
owner103
column tag52
description39
domain25
glossary term10
dbt/order_details2 gaps
columnkindvalue it is missingcopied from
ownerurn:li:corpGroup:b2fd91.ORG_BACKEND_ENGlooker/Order Details
ownerurn:li:corpuser:b2fd91.alex@example.comlooker/order_details
dbt/order_items1 gap
columnkindvalue it is missingcopied from
order_idglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1as3/order_items
dbt/promotions1 gap
columnkindvalue it is missingcopied from
promotion_idglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1as3/promotions
looker/Order Details10 gaps
columnkindvalue it is missingcopied from
description# Order Details Model ## Overview The `order_details` model provides a comprehensive view of customer orders by combining data from multiple tables in the `order_entry` schema. It includes detailed information about orders, customers, products, shipping, billing, inventory, and promotions. This denormalized view is designed to support reporting, analysis, and operational insights across the order management process. ## Model Information - **Name**: `order_details` - **Type**: View - **Source Schema**: `order_entry` - **Database**: `order_entry_db` - **Update Frequency**: Refreshed on query with current timestamp ## Data Structure ### Order Information | Column | Type | Description | Example | | --------------------- | ------------ | ---------------------------------------------------------- | ---------------------------------- | | order_id | NUMBER | Unique identifier for the order | 12345 | | order_date | TIMESTAMP_TZ | Date and time when the order was placed including timezone | 2023-05-01 14:30:00-07:00 | | order_mode | VARCHAR | Method of order placement | 'online', 'phone', 'direct' | | order_status | NUMBER | Current status of the order | 1=Pending, 2=Processing, 3=Shipped | | order_total | NUMBER | Total monetary value of the order | 156.78 | | cost_of_delivery | NUMBER | Shipping and handling cost | 12.99 | | delivery_type | VARCHAR | Shipping method | 'Standard', 'Express', 'Overnight' | | wait_till_complete_yn | VARCHAR | Ship complete order or partial | 'Y', 'N' | | payment_method_code | VARCHAR | Code indicating payment method used | 'CC', 'PayPal', 'ApplePay' | ### Customer Information | Column | Type | Description | Example | | --------------- | ------- | ---------------------------------- | ---------------------------- | | customer_id | NUMBER | Unique identifier for the customer | 5001 | | cust_first_name | VARCHAR | Customer first name | 'John' | | cust_last_name | VARCHAR | Customer last name | 'Smith' | | cust_email | VARCHAR | Customer email address | 'john.smith@example.com' | | phone_number | VARCHAR | Customer contact phone number | '555-123-4567' | | customer_class | VARCHAR | Classification of the customer | 'Platinum', 'Gold', 'Silver' | ### Billing Address Information | Column | Type | Description | Example | | --------------------- | ------- | --------------------------------------------- | --------------- | | billing_address_line1 | VARCHAR | First line of customer billing address | '123 Main St' | | billing_address_line2 | VARCHAR | Second line of customer billing address | 'Apt 4B' | | billing_town_city | VARCHAR | Town or city of customer billing address | 'Springfield' | | billing_country | VARCHAR | Country name for the billing address | 'United States' | | billing_zipcode | VARCHAR | Postal code of customer billing address | '12345' | | billing_region | VARCHAR | Region/state/province for the billing address | 'Illinois' | ### Shipping Address Information | Column | Type | Description | Example | | ---------------------- | ------- | ------------------------------------------ | --------------- | | shipping_address_line1 | VARCHAR | First line of customer shipping address | '456 Oak St' | | shipping_address_line2 | VARCHAR | Second line of customer shipping address | 'Suite 101' | | shipping_town_city | VARCHAR | Town or city of customer shipping address | 'Chicago' | | shipping_country | VARCHAR | Country name for the shipping address | 'United States' | | shipping_zipcode | VARCHAR | Postal code of customer shipping address | '60601' | | shipping_region | VARCHAR | Region/state/province for shipping address | 'Illinois' | ### Warehouse Information | Column | Type | Description | Example | | -------------- | ------- | ------------------------------------------------ | ----------------------------- | | warehouse_id | NUMBER | Identifier of the warehouse fulfilling the order | 3 | | warehouse_name | VARCHAR | Name of the warehouse location | 'Chicago Distribution Center' | ### Promotion Information | Column | Type | Description | Example | | --------------------- | ------- | ------------------------------------------------ | ---------------------------- | | promotion_id | NUMBER | Identifier of the promotion applied to the order | 42 | | promotion_name | VARCHAR | Name of the marketing promotion | 'Summer Sale 2023' | | promotion_description | VARCHAR | Detailed description of the promotion | '20% off all summer apparel' | ### Order Line Item Information | Column | Type | Description | Example | | ------------------- | ------- | ------------------------------------------------------ | --------------------------------------------- | | line_item_id | NUMBER | Line item sequence number within the order | 1 | | product_id | NUMBER | Identifier of the product ordered | 10042 | | product_name | VARCHAR | Name of the product | 'Ergonomic Office Chair' | | product_description | VARCHAR | Brief description of the product | 'Adjustable office chair with lumbar support' | | category_id | NUMBER | Identifier of the product category | 15 | | category_name | VARCHAR | Name of the product category | 'Office Furniture' | | unit_price | NUMBER | Selling price per unit at time of order | 149.99 | | quantity | NUMBER | Number of units ordered | 2 | | line_total | NUMBER | Total price for the line item (unit_price \* quantity) | 299.98 | | dispatch_date | DATE | Date when item was dispatched from warehouse | 2023-05-03 | | return_date | DATE | Date when item was returned if applicable | 2023-05-15 | | gift_wrap | VARCHAR | Flag or type of gift wrapping requested | 'Y', 'Premium', 'Basic' | | condition | VARCHAR | Condition of product | 'New', 'Refurbished' | | estimated_delivery | DATE | Estimated delivery date for this item | 2023-05-07 | | list_price | NUMBER | Standard list price for the product | 179.99 | | product_status | VARCHAR | Current status of the product | 'Available', 'Discontinued' | | quantity_on_hand | NUMBER | Current inventory count in the fulfilling warehouse | 24 | | stock_status | VARCHAR | Status of current inventory levels | 'Low Stock', 'In Stock', 'Overstocked' | ### Calculated Fields | Column | Type | Description | Example | | ---------------- | ------- | ---------------------------------------------------- | ---------------------------------------- | | discount_amount | NUMBER | Amount of discount applied (list_price - unit_price) | 30.00 | | discount_percent | NUMBER | Percentage discount applied | 16.67 | | delivery_status | VARCHAR | Current status of delivery | 'Not Shipped', 'In Transit', 'Delivered' | | return_status | VARCHAR | Status indicating if item was returned | 'Returned', 'Not Returned' | ### Timestamp Information | Column | Type | Description | Example | | ---------- | ------------ | ----------------------------------------------------------------------- | ----------------------------------- | | updated_at | TIMESTAMP_TZ | Timestamp when this record was last refreshed with nanosecond precision | 2023-07-15 08:23:45.123456789-07:00 | ## Sources and Joins This model combines data from the following source tables: - `orders` - Primary table containing order header information - `customers` - Customer demographic and contact information - `addresses` - Billing and shipping address details - `countries` - Country information for addresses - `regions` - Regional information for addresses - `warehouses` - Warehouse details for order fulfillment - `promotions` - Promotion information applied to orders - `order_items` - Individual line items within each order - `products` - Product information for ordered items - `product_categories` - Category information for products - `inventories` - Inventory levels for products at warehouses ## Data Tests The following data quality tests are applied to this model: ### Primary Key Tests - `order_id` and `line_item_id` combination is unique - `order_id` is not null ### Referential Integrity Tests - `customer_id` exists in the customers table - `product_id` exists in the products table - `warehouse_id` exists in the warehouses table - `promotion_id` exists in the promotions table (when not null) - `category_id` exists in the product_categories table ### Value Tests - `unit_price` and `quantity` are positive values - `line_total` equals `unit_price` \* `quantity` - `order_status` contains valid status codes - `wait_till_complete_yn` contains only 'Y' or 'N' - `stock_status` contains only valid values: 'Low Stock', 'In Stock', 'Overstocked', 'Unknown' - `delivery_status` contains only valid values: 'Not Shipped', 'In Transit', 'Delivered', 'Unknown' - `return_status` contains only valid values: 'Returned', 'Not Returned' ## Usage Examples ### Basic Order Query ```sql SELECT order_id, order_date, cust_first_name || ' ' || cust_last_name AS customer_name, order_total, delivery_status FROM order_details WHERE order_date >= DATEADD(month, -1, CURRENT_DATE()) ORDER BY order_date DESC ``` ### Order Analysis by Category ```sql SELECT category_name, COUNT(DISTINCT order_id) AS order_count, SUM(line_total) AS total_revenue, AVG(discount_percent) AS avg_discount_pct FROM order_details WHERE order_date >= DATEADD(year, -1, CURRENT_DATE()) GROUP BY category_name ORDER BY total_revenue DESC ``` ### Delivery Performance ```sql SELECT warehouse_name, delivery_type, AVG(DATEDIFF(day, order_date, dispatch_date)) AS avg_processing_days, AVG(DATEDIFF(day, dispatch_date, estimated_delivery)) AS avg_transit_days, COUNT(*) AS shipment_count FROM order_details WHERE dispatch_date IS NOT NULL AND order_date >= DATEADD(month, -6, CURRENT_DATE()) GROUP BY warehouse_name, delivery_type ORDER BY warehouse_name, avg_processing_days ``` ### Returns Analysis ```sql SELECT product_name, COUNT(*) AS total_ordered, SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) AS total_returned, (SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) / COUNT(*)::float) * 100 AS return_rate FROM order_details WHERE order_date >= DATEADD(month, -3, CURRENT_DATE()) GROUP BY product_name HAVING COUNT(*) > 10 ORDER BY return_rate DESC LIMIT 20 ``` ## Maintenance and Refresh As a view, this model is refreshed with each query. The timestamp indicates when the data was last queried and can be used to track data freshness. Since the model pulls directly from source tables, it always reflects the current state of the data. `updated_at` ## Dependencies This model depends on: - Source tables from the schema `order_entry` - Any data quality tests defined in the file `schema.yml` ## Additional Notes - This model includes sensitive customer information. Ensure appropriate access controls are in place. - Performance considerations: This view joins multiple tables and may be resource-intensive for large datasets. Consider materializing as a table with scheduled refreshes for frequent reporting needs. - For large reporting needs, consider creating aggregated models derived from this model rather than running complex aggregations directly.dbt/order_details
ownerurn:li:corpGroup:b2fd91.1e0398a3-113f-475e-b6fc-32ab72a634d2dbt/order_details
ownerurn:li:corpuser:b2fd91.alex@example.comlooker/order_details
ownerurn:li:corpuser:b2fd91.brock1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.bryan@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny2@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.kirk@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.marty@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.sam@example.comdbt/order_details
looker/order_details9 gaps
columnkindvalue it is missingcopied from
description# Order Details Model ## Overview The `order_details` model provides a comprehensive view of customer orders by combining data from multiple tables in the `order_entry` schema. It includes detailed information about orders, customers, products, shipping, billing, inventory, and promotions. This denormalized view is designed to support reporting, analysis, and operational insights across the order management process. ## Model Information - **Name**: `order_details` - **Type**: View - **Source Schema**: `order_entry` - **Database**: `order_entry_db` - **Update Frequency**: Refreshed on query with current timestamp ## Data Structure ### Order Information | Column | Type | Description | Example | | --------------------- | ------------ | ---------------------------------------------------------- | ---------------------------------- | | order_id | NUMBER | Unique identifier for the order | 12345 | | order_date | TIMESTAMP_TZ | Date and time when the order was placed including timezone | 2023-05-01 14:30:00-07:00 | | order_mode | VARCHAR | Method of order placement | 'online', 'phone', 'direct' | | order_status | NUMBER | Current status of the order | 1=Pending, 2=Processing, 3=Shipped | | order_total | NUMBER | Total monetary value of the order | 156.78 | | cost_of_delivery | NUMBER | Shipping and handling cost | 12.99 | | delivery_type | VARCHAR | Shipping method | 'Standard', 'Express', 'Overnight' | | wait_till_complete_yn | VARCHAR | Ship complete order or partial | 'Y', 'N' | | payment_method_code | VARCHAR | Code indicating payment method used | 'CC', 'PayPal', 'ApplePay' | ### Customer Information | Column | Type | Description | Example | | --------------- | ------- | ---------------------------------- | ---------------------------- | | customer_id | NUMBER | Unique identifier for the customer | 5001 | | cust_first_name | VARCHAR | Customer first name | 'John' | | cust_last_name | VARCHAR | Customer last name | 'Smith' | | cust_email | VARCHAR | Customer email address | 'john.smith@example.com' | | phone_number | VARCHAR | Customer contact phone number | '555-123-4567' | | customer_class | VARCHAR | Classification of the customer | 'Platinum', 'Gold', 'Silver' | ### Billing Address Information | Column | Type | Description | Example | | --------------------- | ------- | --------------------------------------------- | --------------- | | billing_address_line1 | VARCHAR | First line of customer billing address | '123 Main St' | | billing_address_line2 | VARCHAR | Second line of customer billing address | 'Apt 4B' | | billing_town_city | VARCHAR | Town or city of customer billing address | 'Springfield' | | billing_country | VARCHAR | Country name for the billing address | 'United States' | | billing_zipcode | VARCHAR | Postal code of customer billing address | '12345' | | billing_region | VARCHAR | Region/state/province for the billing address | 'Illinois' | ### Shipping Address Information | Column | Type | Description | Example | | ---------------------- | ------- | ------------------------------------------ | --------------- | | shipping_address_line1 | VARCHAR | First line of customer shipping address | '456 Oak St' | | shipping_address_line2 | VARCHAR | Second line of customer shipping address | 'Suite 101' | | shipping_town_city | VARCHAR | Town or city of customer shipping address | 'Chicago' | | shipping_country | VARCHAR | Country name for the shipping address | 'United States' | | shipping_zipcode | VARCHAR | Postal code of customer shipping address | '60601' | | shipping_region | VARCHAR | Region/state/province for shipping address | 'Illinois' | ### Warehouse Information | Column | Type | Description | Example | | -------------- | ------- | ------------------------------------------------ | ----------------------------- | | warehouse_id | NUMBER | Identifier of the warehouse fulfilling the order | 3 | | warehouse_name | VARCHAR | Name of the warehouse location | 'Chicago Distribution Center' | ### Promotion Information | Column | Type | Description | Example | | --------------------- | ------- | ------------------------------------------------ | ---------------------------- | | promotion_id | NUMBER | Identifier of the promotion applied to the order | 42 | | promotion_name | VARCHAR | Name of the marketing promotion | 'Summer Sale 2023' | | promotion_description | VARCHAR | Detailed description of the promotion | '20% off all summer apparel' | ### Order Line Item Information | Column | Type | Description | Example | | ------------------- | ------- | ------------------------------------------------------ | --------------------------------------------- | | line_item_id | NUMBER | Line item sequence number within the order | 1 | | product_id | NUMBER | Identifier of the product ordered | 10042 | | product_name | VARCHAR | Name of the product | 'Ergonomic Office Chair' | | product_description | VARCHAR | Brief description of the product | 'Adjustable office chair with lumbar support' | | category_id | NUMBER | Identifier of the product category | 15 | | category_name | VARCHAR | Name of the product category | 'Office Furniture' | | unit_price | NUMBER | Selling price per unit at time of order | 149.99 | | quantity | NUMBER | Number of units ordered | 2 | | line_total | NUMBER | Total price for the line item (unit_price \* quantity) | 299.98 | | dispatch_date | DATE | Date when item was dispatched from warehouse | 2023-05-03 | | return_date | DATE | Date when item was returned if applicable | 2023-05-15 | | gift_wrap | VARCHAR | Flag or type of gift wrapping requested | 'Y', 'Premium', 'Basic' | | condition | VARCHAR | Condition of product | 'New', 'Refurbished' | | estimated_delivery | DATE | Estimated delivery date for this item | 2023-05-07 | | list_price | NUMBER | Standard list price for the product | 179.99 | | product_status | VARCHAR | Current status of the product | 'Available', 'Discontinued' | | quantity_on_hand | NUMBER | Current inventory count in the fulfilling warehouse | 24 | | stock_status | VARCHAR | Status of current inventory levels | 'Low Stock', 'In Stock', 'Overstocked' | ### Calculated Fields | Column | Type | Description | Example | | ---------------- | ------- | ---------------------------------------------------- | ---------------------------------------- | | discount_amount | NUMBER | Amount of discount applied (list_price - unit_price) | 30.00 | | discount_percent | NUMBER | Percentage discount applied | 16.67 | | delivery_status | VARCHAR | Current status of delivery | 'Not Shipped', 'In Transit', 'Delivered' | | return_status | VARCHAR | Status indicating if item was returned | 'Returned', 'Not Returned' | ### Timestamp Information | Column | Type | Description | Example | | ---------- | ------------ | ----------------------------------------------------------------------- | ----------------------------------- | | updated_at | TIMESTAMP_TZ | Timestamp when this record was last refreshed with nanosecond precision | 2023-07-15 08:23:45.123456789-07:00 | ## Sources and Joins This model combines data from the following source tables: - `orders` - Primary table containing order header information - `customers` - Customer demographic and contact information - `addresses` - Billing and shipping address details - `countries` - Country information for addresses - `regions` - Regional information for addresses - `warehouses` - Warehouse details for order fulfillment - `promotions` - Promotion information applied to orders - `order_items` - Individual line items within each order - `products` - Product information for ordered items - `product_categories` - Category information for products - `inventories` - Inventory levels for products at warehouses ## Data Tests The following data quality tests are applied to this model: ### Primary Key Tests - `order_id` and `line_item_id` combination is unique - `order_id` is not null ### Referential Integrity Tests - `customer_id` exists in the customers table - `product_id` exists in the products table - `warehouse_id` exists in the warehouses table - `promotion_id` exists in the promotions table (when not null) - `category_id` exists in the product_categories table ### Value Tests - `unit_price` and `quantity` are positive values - `line_total` equals `unit_price` \* `quantity` - `order_status` contains valid status codes - `wait_till_complete_yn` contains only 'Y' or 'N' - `stock_status` contains only valid values: 'Low Stock', 'In Stock', 'Overstocked', 'Unknown' - `delivery_status` contains only valid values: 'Not Shipped', 'In Transit', 'Delivered', 'Unknown' - `return_status` contains only valid values: 'Returned', 'Not Returned' ## Usage Examples ### Basic Order Query ```sql SELECT order_id, order_date, cust_first_name || ' ' || cust_last_name AS customer_name, order_total, delivery_status FROM order_details WHERE order_date >= DATEADD(month, -1, CURRENT_DATE()) ORDER BY order_date DESC ``` ### Order Analysis by Category ```sql SELECT category_name, COUNT(DISTINCT order_id) AS order_count, SUM(line_total) AS total_revenue, AVG(discount_percent) AS avg_discount_pct FROM order_details WHERE order_date >= DATEADD(year, -1, CURRENT_DATE()) GROUP BY category_name ORDER BY total_revenue DESC ``` ### Delivery Performance ```sql SELECT warehouse_name, delivery_type, AVG(DATEDIFF(day, order_date, dispatch_date)) AS avg_processing_days, AVG(DATEDIFF(day, dispatch_date, estimated_delivery)) AS avg_transit_days, COUNT(*) AS shipment_count FROM order_details WHERE dispatch_date IS NOT NULL AND order_date >= DATEADD(month, -6, CURRENT_DATE()) GROUP BY warehouse_name, delivery_type ORDER BY warehouse_name, avg_processing_days ``` ### Returns Analysis ```sql SELECT product_name, COUNT(*) AS total_ordered, SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) AS total_returned, (SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) / COUNT(*)::float) * 100 AS return_rate FROM order_details WHERE order_date >= DATEADD(month, -3, CURRENT_DATE()) GROUP BY product_name HAVING COUNT(*) > 10 ORDER BY return_rate DESC LIMIT 20 ``` ## Maintenance and Refresh As a view, this model is refreshed with each query. The timestamp indicates when the data was last queried and can be used to track data freshness. Since the model pulls directly from source tables, it always reflects the current state of the data. `updated_at` ## Dependencies This model depends on: - Source tables from the schema `order_entry` - Any data quality tests defined in the file `schema.yml` ## Additional Notes - This model includes sensitive customer information. Ensure appropriate access controls are in place. - Performance considerations: This view joins multiple tables and may be resource-intensive for large datasets. Consider materializing as a table with scheduled refreshes for frequent reporting needs. - For large reporting needs, consider creating aggregated models derived from this model rather than running complex aggregations directly.dbt/order_details
ownerurn:li:corpGroup:b2fd91.1e0398a3-113f-475e-b6fc-32ab72a634d2dbt/order_details
ownerurn:li:corpGroup:b2fd91.ORG_BACKEND_ENGlooker/Order Details
ownerurn:li:corpuser:b2fd91.brock1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.bryan@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny2@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.kirk@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.sam@example.comdbt/order_details
postgres/addresses15 gaps
columnkindvalue it is missingcopied from
address_idcolumn descriptionUnique identifier for the addressdbt/addresses
address_line1column descriptionFirst line of addressdbt/addresses
address_line2column descriptionSecond line of addressdbt/addresses
country_idcolumn descriptionReference to country tabledbt/addresses
customer_idcolumn descriptionForeign key to the customers tabledbt/addresses
date_createdcolumn descriptionDate when address was added to the systemdbt/addresses
region_idcolumn descriptionReference to region tabledbt/addresses
town_citycolumn descriptionTown or city of the addressdbt/addresses
zipcodecolumn descriptionPostal code of addressdbt/addresses
town_cityglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1adbt/addresses
zipcodeglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1adbt/addresses
descriptionContains multiple shipping and billing addresses for customersdbt/addresses
domainData Platform Teamdbt/addresses
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/addresses
ownerurn:li:corpuser:b2fd91.EMP006dbt/addresses
postgres/countries8 gaps
columnkindvalue it is missingcopied from
country_codecolumn descriptionISO two-letter country codedbt/countries
country_idcolumn descriptionUnique identifier for the countrydbt/countries
country_namecolumn descriptionName of the countrydbt/countries
nls_territorycolumn descriptionNLS territory setting for localizationdbt/countries
descriptionReference table for country informationdbt/countries
domainData Platform Teamdbt/countries
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/countries
ownerurn:li:corpuser:b2fd91.EMP006dbt/countries
postgres/customers1 gap
columnkindvalue it is missingcopied from
descriptionContains customer demographic and contact informationdbt/customers
postgres/inventories10 gaps
columnkindvalue it is missingcopied from
max_stock_levelcolumn descriptionMaximum storage capacity for this productdbt/inventories
product_idcolumn descriptionForeign key to the products tabledbt/inventories
quantity_on_handcolumn descriptionCurrent inventory count for this product in this warehousedbt/inventories
reorder_quantitycolumn descriptionStandard reorder quantity when restockingdbt/inventories
restock_levelcolumn descriptionThreshold at which restocking is initiateddbt/inventories
warehouse_idcolumn descriptionForeign key to the warehouses tabledbt/inventories
descriptionTracks product inventory levels across warehousesdbt/inventories
domainData Platform Teamdbt/inventories
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/inventories
ownerurn:li:corpuser:b2fd91.EMP006dbt/inventories
postgres/order_items16 gaps
columnkindvalue it is missingcopied from
conditioncolumn descriptionCondition of product (e.g., New, Refurbished)dbt/order_items
dispatch_datecolumn descriptionDate when item was dispatched from warehousedbt/order_items
estimated_deliverycolumn descriptionEstimated delivery date for this itemdbt/order_items
gift_wrapcolumn descriptionFlag or type of gift wrapping requesteddbt/order_items
line_item_idcolumn descriptionLine item sequence number within the orderdbt/order_items
order_idcolumn descriptionForeign key to the orders tabledbt/order_items
product_idcolumn descriptionForeign key to the products tabledbt/order_items
quantitycolumn descriptionNumber of units ordereddbt/order_items
return_datecolumn descriptionDate when item was returned if applicabledbt/order_items
supplier_idcolumn descriptionID of the supplier if dropshippeddbt/order_items
unit_pricecolumn descriptionSelling price per unit at time of orderdbt/order_items
order_idglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1as3/order_items
descriptionContains line items for each orderdbt/order_items
domainData Platform Teamdbt/order_items
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/order_items
ownerurn:li:corpuser:b2fd91.EMP006dbt/order_items
postgres/orders1 gap
columnkindvalue it is missingcopied from
descriptionContains header information for customer ordersdbt/orders
postgres/product_categories8 gaps
columnkindvalue it is missingcopied from
category_descriptioncolumn descriptionDetailed description of the product categorydbt/product_categories
category_idcolumn descriptionUnique identifier for the product categorydbt/product_categories
category_namecolumn descriptionName of the product categorydbt/product_categories
parent_category_idcolumn descriptionSelf-referential key to parent category (allows hierarchy)dbt/product_categories
descriptionHierarchical product category classification systemdbt/product_categories
domainData Platform Teamdbt/product_categories
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/product_categories
ownerurn:li:corpuser:b2fd91.EMP006dbt/product_categories
postgres/products1 gap
columnkindvalue it is missingcopied from
descriptionContains information about products available for saledbt/products
postgres/promotions12 gaps
columnkindvalue it is missingcopied from
promotion_costcolumn descriptionBudgeted cost of running the promotiondbt/promotions
promotion_descriptioncolumn descriptionDetailed description of the promotiondbt/promotions
promotion_end_datecolumn descriptionEnding date of the promotiondbt/promotions
promotion_idcolumn descriptionUnique identifier for the promotiondbt/promotions
promotion_namecolumn descriptionName of the marketing promotiondbt/promotions
promotion_start_datecolumn descriptionStarting date of the promotiondbt/promotions
promotion_descriptioncolumn tagurn:li:tag:b2fd91.No Sample Valuesdbt/promotions
promotion_idglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1as3/promotions
descriptionContains information about marketing promotions and campaignsdbt/promotions
domainData Platform Teamdbt/promotions
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/promotions
ownerurn:li:corpuser:b2fd91.EMP006dbt/promotions
postgres/regions8 gaps
columnkindvalue it is missingcopied from
country_idcolumn descriptionForeign key to the countries tabledbt/regions
nls_languagecolumn descriptionDefault language code for the regiondbt/regions
region_idcolumn descriptionUnique identifier for the regiondbt/regions
region_namecolumn descriptionName of the region (state, province, etc.)dbt/regions
descriptionReference table for regional information within countriesdbt/regions
domainData Platform Teamdbt/regions
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/regions
ownerurn:li:corpuser:b2fd91.EMP006dbt/regions
postgres/warehouses8 gaps
columnkindvalue it is missingcopied from
location_idcolumn descriptionReference to the physical locationdbt/warehouses
warehouse_idcolumn descriptionUnique identifier for the warehousedbt/warehouses
warehouse_namecolumn descriptionName of the warehouse locationdbt/warehouses
wh_geo_locationcolumn descriptionGeographic coordinates of the warehousedbt/warehouses
descriptionContains information about physical distribution centersdbt/warehouses
domainData Platform Teamdbt/warehouses
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/warehouses
ownerurn:li:corpuser:b2fd91.EMP006dbt/warehouses
powerbi/ORDER_DETAILS12 gaps
columnkindvalue it is missingcopied from
description# Order Details Model ## Overview The `order_details` model provides a comprehensive view of customer orders by combining data from multiple tables in the `order_entry` schema. It includes detailed information about orders, customers, products, shipping, billing, inventory, and promotions. This denormalized view is designed to support reporting, analysis, and operational insights across the order management process. ## Model Information - **Name**: `order_details` - **Type**: View - **Source Schema**: `order_entry` - **Database**: `order_entry_db` - **Update Frequency**: Refreshed on query with current timestamp ## Data Structure ### Order Information | Column | Type | Description | Example | | --------------------- | ------------ | ---------------------------------------------------------- | ---------------------------------- | | order_id | NUMBER | Unique identifier for the order | 12345 | | order_date | TIMESTAMP_TZ | Date and time when the order was placed including timezone | 2023-05-01 14:30:00-07:00 | | order_mode | VARCHAR | Method of order placement | 'online', 'phone', 'direct' | | order_status | NUMBER | Current status of the order | 1=Pending, 2=Processing, 3=Shipped | | order_total | NUMBER | Total monetary value of the order | 156.78 | | cost_of_delivery | NUMBER | Shipping and handling cost | 12.99 | | delivery_type | VARCHAR | Shipping method | 'Standard', 'Express', 'Overnight' | | wait_till_complete_yn | VARCHAR | Ship complete order or partial | 'Y', 'N' | | payment_method_code | VARCHAR | Code indicating payment method used | 'CC', 'PayPal', 'ApplePay' | ### Customer Information | Column | Type | Description | Example | | --------------- | ------- | ---------------------------------- | ---------------------------- | | customer_id | NUMBER | Unique identifier for the customer | 5001 | | cust_first_name | VARCHAR | Customer first name | 'John' | | cust_last_name | VARCHAR | Customer last name | 'Smith' | | cust_email | VARCHAR | Customer email address | 'john.smith@example.com' | | phone_number | VARCHAR | Customer contact phone number | '555-123-4567' | | customer_class | VARCHAR | Classification of the customer | 'Platinum', 'Gold', 'Silver' | ### Billing Address Information | Column | Type | Description | Example | | --------------------- | ------- | --------------------------------------------- | --------------- | | billing_address_line1 | VARCHAR | First line of customer billing address | '123 Main St' | | billing_address_line2 | VARCHAR | Second line of customer billing address | 'Apt 4B' | | billing_town_city | VARCHAR | Town or city of customer billing address | 'Springfield' | | billing_country | VARCHAR | Country name for the billing address | 'United States' | | billing_zipcode | VARCHAR | Postal code of customer billing address | '12345' | | billing_region | VARCHAR | Region/state/province for the billing address | 'Illinois' | ### Shipping Address Information | Column | Type | Description | Example | | ---------------------- | ------- | ------------------------------------------ | --------------- | | shipping_address_line1 | VARCHAR | First line of customer shipping address | '456 Oak St' | | shipping_address_line2 | VARCHAR | Second line of customer shipping address | 'Suite 101' | | shipping_town_city | VARCHAR | Town or city of customer shipping address | 'Chicago' | | shipping_country | VARCHAR | Country name for the shipping address | 'United States' | | shipping_zipcode | VARCHAR | Postal code of customer shipping address | '60601' | | shipping_region | VARCHAR | Region/state/province for shipping address | 'Illinois' | ### Warehouse Information | Column | Type | Description | Example | | -------------- | ------- | ------------------------------------------------ | ----------------------------- | | warehouse_id | NUMBER | Identifier of the warehouse fulfilling the order | 3 | | warehouse_name | VARCHAR | Name of the warehouse location | 'Chicago Distribution Center' | ### Promotion Information | Column | Type | Description | Example | | --------------------- | ------- | ------------------------------------------------ | ---------------------------- | | promotion_id | NUMBER | Identifier of the promotion applied to the order | 42 | | promotion_name | VARCHAR | Name of the marketing promotion | 'Summer Sale 2023' | | promotion_description | VARCHAR | Detailed description of the promotion | '20% off all summer apparel' | ### Order Line Item Information | Column | Type | Description | Example | | ------------------- | ------- | ------------------------------------------------------ | --------------------------------------------- | | line_item_id | NUMBER | Line item sequence number within the order | 1 | | product_id | NUMBER | Identifier of the product ordered | 10042 | | product_name | VARCHAR | Name of the product | 'Ergonomic Office Chair' | | product_description | VARCHAR | Brief description of the product | 'Adjustable office chair with lumbar support' | | category_id | NUMBER | Identifier of the product category | 15 | | category_name | VARCHAR | Name of the product category | 'Office Furniture' | | unit_price | NUMBER | Selling price per unit at time of order | 149.99 | | quantity | NUMBER | Number of units ordered | 2 | | line_total | NUMBER | Total price for the line item (unit_price \* quantity) | 299.98 | | dispatch_date | DATE | Date when item was dispatched from warehouse | 2023-05-03 | | return_date | DATE | Date when item was returned if applicable | 2023-05-15 | | gift_wrap | VARCHAR | Flag or type of gift wrapping requested | 'Y', 'Premium', 'Basic' | | condition | VARCHAR | Condition of product | 'New', 'Refurbished' | | estimated_delivery | DATE | Estimated delivery date for this item | 2023-05-07 | | list_price | NUMBER | Standard list price for the product | 179.99 | | product_status | VARCHAR | Current status of the product | 'Available', 'Discontinued' | | quantity_on_hand | NUMBER | Current inventory count in the fulfilling warehouse | 24 | | stock_status | VARCHAR | Status of current inventory levels | 'Low Stock', 'In Stock', 'Overstocked' | ### Calculated Fields | Column | Type | Description | Example | | ---------------- | ------- | ---------------------------------------------------- | ---------------------------------------- | | discount_amount | NUMBER | Amount of discount applied (list_price - unit_price) | 30.00 | | discount_percent | NUMBER | Percentage discount applied | 16.67 | | delivery_status | VARCHAR | Current status of delivery | 'Not Shipped', 'In Transit', 'Delivered' | | return_status | VARCHAR | Status indicating if item was returned | 'Returned', 'Not Returned' | ### Timestamp Information | Column | Type | Description | Example | | ---------- | ------------ | ----------------------------------------------------------------------- | ----------------------------------- | | updated_at | TIMESTAMP_TZ | Timestamp when this record was last refreshed with nanosecond precision | 2023-07-15 08:23:45.123456789-07:00 | ## Sources and Joins This model combines data from the following source tables: - `orders` - Primary table containing order header information - `customers` - Customer demographic and contact information - `addresses` - Billing and shipping address details - `countries` - Country information for addresses - `regions` - Regional information for addresses - `warehouses` - Warehouse details for order fulfillment - `promotions` - Promotion information applied to orders - `order_items` - Individual line items within each order - `products` - Product information for ordered items - `product_categories` - Category information for products - `inventories` - Inventory levels for products at warehouses ## Data Tests The following data quality tests are applied to this model: ### Primary Key Tests - `order_id` and `line_item_id` combination is unique - `order_id` is not null ### Referential Integrity Tests - `customer_id` exists in the customers table - `product_id` exists in the products table - `warehouse_id` exists in the warehouses table - `promotion_id` exists in the promotions table (when not null) - `category_id` exists in the product_categories table ### Value Tests - `unit_price` and `quantity` are positive values - `line_total` equals `unit_price` \* `quantity` - `order_status` contains valid status codes - `wait_till_complete_yn` contains only 'Y' or 'N' - `stock_status` contains only valid values: 'Low Stock', 'In Stock', 'Overstocked', 'Unknown' - `delivery_status` contains only valid values: 'Not Shipped', 'In Transit', 'Delivered', 'Unknown' - `return_status` contains only valid values: 'Returned', 'Not Returned' ## Usage Examples ### Basic Order Query ```sql SELECT order_id, order_date, cust_first_name || ' ' || cust_last_name AS customer_name, order_total, delivery_status FROM order_details WHERE order_date >= DATEADD(month, -1, CURRENT_DATE()) ORDER BY order_date DESC ``` ### Order Analysis by Category ```sql SELECT category_name, COUNT(DISTINCT order_id) AS order_count, SUM(line_total) AS total_revenue, AVG(discount_percent) AS avg_discount_pct FROM order_details WHERE order_date >= DATEADD(year, -1, CURRENT_DATE()) GROUP BY category_name ORDER BY total_revenue DESC ``` ### Delivery Performance ```sql SELECT warehouse_name, delivery_type, AVG(DATEDIFF(day, order_date, dispatch_date)) AS avg_processing_days, AVG(DATEDIFF(day, dispatch_date, estimated_delivery)) AS avg_transit_days, COUNT(*) AS shipment_count FROM order_details WHERE dispatch_date IS NOT NULL AND order_date >= DATEADD(month, -6, CURRENT_DATE()) GROUP BY warehouse_name, delivery_type ORDER BY warehouse_name, avg_processing_days ``` ### Returns Analysis ```sql SELECT product_name, COUNT(*) AS total_ordered, SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) AS total_returned, (SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) / COUNT(*)::float) * 100 AS return_rate FROM order_details WHERE order_date >= DATEADD(month, -3, CURRENT_DATE()) GROUP BY product_name HAVING COUNT(*) > 10 ORDER BY return_rate DESC LIMIT 20 ``` ## Maintenance and Refresh As a view, this model is refreshed with each query. The timestamp indicates when the data was last queried and can be used to track data freshness. Since the model pulls directly from source tables, it always reflects the current state of the data. `updated_at` ## Dependencies This model depends on: - Source tables from the schema `order_entry` - Any data quality tests defined in the file `schema.yml` ## Additional Notes - This model includes sensitive customer information. Ensure appropriate access controls are in place. - Performance considerations: This view joins multiple tables and may be resource-intensive for large datasets. Consider materializing as a table with scheduled refreshes for frequent reporting needs. - For large reporting needs, consider creating aggregated models derived from this model rather than running complex aggregations directly.dbt/order_details
ownerurn:li:corpGroup:b2fd91.1e0398a3-113f-475e-b6fc-32ab72a634d2dbt/order_details
ownerurn:li:corpGroup:b2fd91.ORG_BACKEND_ENGlooker/Order Details
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/order_details
ownerurn:li:corpuser:b2fd91.EMP006dbt/order_details
ownerurn:li:corpuser:b2fd91.alex@example.comlooker/order_details
ownerurn:li:corpuser:b2fd91.brock1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.bryan@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny2@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.marty@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.sam@example.comdbt/order_details
s3/addresses13 gaps
columnkindvalue it is missingcopied from
address_idcolumn descriptionUnique identifier for the addressdbt/addresses
address_line1column descriptionFirst line of addressdbt/addresses
address_line2column descriptionSecond line of addressdbt/addresses
country_idcolumn descriptionReference to country tabledbt/addresses
customer_idcolumn descriptionForeign key to the customers tabledbt/addresses
date_createdcolumn descriptionDate when address was added to the systemdbt/addresses
region_idcolumn descriptionReference to region tabledbt/addresses
town_citycolumn descriptionTown or city of the addressdbt/addresses
zipcodecolumn descriptionPostal code of addressdbt/addresses
descriptionContains multiple shipping and billing addresses for customersdbt/addresses
domainData Platform Teamdbt/addresses
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/addresses
ownerurn:li:corpuser:b2fd91.EMP006dbt/addresses
s3/countries8 gaps
columnkindvalue it is missingcopied from
country_codecolumn descriptionISO two-letter country codedbt/countries
country_idcolumn descriptionUnique identifier for the countrydbt/countries
country_namecolumn descriptionName of the countrydbt/countries
nls_territorycolumn descriptionNLS territory setting for localizationdbt/countries
descriptionReference table for country informationdbt/countries
domainData Platform Teamdbt/countries
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/countries
ownerurn:li:corpuser:b2fd91.EMP006dbt/countries
s3/customers1 gap
columnkindvalue it is missingcopied from
descriptionContains customer demographic and contact informationdbt/customers
s3/inventories10 gaps
columnkindvalue it is missingcopied from
max_stock_levelcolumn descriptionMaximum storage capacity for this productdbt/inventories
product_idcolumn descriptionForeign key to the products tabledbt/inventories
quantity_on_handcolumn descriptionCurrent inventory count for this product in this warehousedbt/inventories
reorder_quantitycolumn descriptionStandard reorder quantity when restockingdbt/inventories
restock_levelcolumn descriptionThreshold at which restocking is initiateddbt/inventories
warehouse_idcolumn descriptionForeign key to the warehouses tabledbt/inventories
descriptionTracks product inventory levels across warehousesdbt/inventories
domainData Platform Teamdbt/inventories
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/inventories
ownerurn:li:corpuser:b2fd91.EMP006dbt/inventories
s3/order_items15 gaps
columnkindvalue it is missingcopied from
conditioncolumn descriptionCondition of product (e.g., New, Refurbished)dbt/order_items
dispatch_datecolumn descriptionDate when item was dispatched from warehousedbt/order_items
estimated_deliverycolumn descriptionEstimated delivery date for this itemdbt/order_items
gift_wrapcolumn descriptionFlag or type of gift wrapping requesteddbt/order_items
line_item_idcolumn descriptionLine item sequence number within the orderdbt/order_items
order_idcolumn descriptionForeign key to the orders tabledbt/order_items
product_idcolumn descriptionForeign key to the products tabledbt/order_items
quantitycolumn descriptionNumber of units ordereddbt/order_items
return_datecolumn descriptionDate when item was returned if applicabledbt/order_items
supplier_idcolumn descriptionID of the supplier if dropshippeddbt/order_items
unit_pricecolumn descriptionSelling price per unit at time of orderdbt/order_items
descriptionContains line items for each orderdbt/order_items
domainData Platform Teamdbt/order_items
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/order_items
ownerurn:li:corpuser:b2fd91.EMP006dbt/order_items
s3/orders1 gap
columnkindvalue it is missingcopied from
descriptionContains header information for customer ordersdbt/orders
s3/product_categories8 gaps
columnkindvalue it is missingcopied from
category_descriptioncolumn descriptionDetailed description of the product categorydbt/product_categories
category_idcolumn descriptionUnique identifier for the product categorydbt/product_categories
category_namecolumn descriptionName of the product categorydbt/product_categories
parent_category_idcolumn descriptionSelf-referential key to parent category (allows hierarchy)dbt/product_categories
descriptionHierarchical product category classification systemdbt/product_categories
domainData Platform Teamdbt/product_categories
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/product_categories
ownerurn:li:corpuser:b2fd91.EMP006dbt/product_categories
s3/products1 gap
columnkindvalue it is missingcopied from
descriptionContains information about products available for saledbt/products
s3/promotions11 gaps
columnkindvalue it is missingcopied from
promotion_costcolumn descriptionBudgeted cost of running the promotiondbt/promotions
promotion_descriptioncolumn descriptionDetailed description of the promotiondbt/promotions
promotion_end_datecolumn descriptionEnding date of the promotiondbt/promotions
promotion_idcolumn descriptionUnique identifier for the promotiondbt/promotions
promotion_namecolumn descriptionName of the marketing promotiondbt/promotions
promotion_start_datecolumn descriptionStarting date of the promotiondbt/promotions
promotion_descriptioncolumn tagurn:li:tag:b2fd91.No Sample Valuesdbt/promotions
descriptionContains information about marketing promotions and campaignsdbt/promotions
domainData Platform Teamdbt/promotions
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/promotions
ownerurn:li:corpuser:b2fd91.EMP006dbt/promotions
s3/regions8 gaps
columnkindvalue it is missingcopied from
country_idcolumn descriptionForeign key to the countries tabledbt/regions
nls_languagecolumn descriptionDefault language code for the regiondbt/regions
region_idcolumn descriptionUnique identifier for the regiondbt/regions
region_namecolumn descriptionName of the region (state, province, etc.)dbt/regions
descriptionReference table for regional information within countriesdbt/regions
domainData Platform Teamdbt/regions
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/regions
ownerurn:li:corpuser:b2fd91.EMP006dbt/regions
s3/warehouses8 gaps
columnkindvalue it is missingcopied from
location_idcolumn descriptionReference to the physical locationdbt/warehouses
warehouse_idcolumn descriptionUnique identifier for the warehousedbt/warehouses
warehouse_namecolumn descriptionName of the warehouse locationdbt/warehouses
wh_geo_locationcolumn descriptionGeographic coordinates of the warehousedbt/warehouses
descriptionContains information about physical distribution centersdbt/warehouses
domainData Platform Teamdbt/warehouses
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/warehouses
ownerurn:li:corpuser:b2fd91.EMP006dbt/warehouses
snowflake/ADDRESSES15 gaps
columnkindvalue it is missingcopied from
address_idcolumn descriptionUnique identifier for the addressdbt/addresses
address_line1column descriptionFirst line of addressdbt/addresses
address_line2column descriptionSecond line of addressdbt/addresses
country_idcolumn descriptionReference to country tabledbt/addresses
customer_idcolumn descriptionForeign key to the customers tabledbt/addresses
date_createdcolumn descriptionDate when address was added to the systemdbt/addresses
region_idcolumn descriptionReference to region tabledbt/addresses
town_citycolumn descriptionTown or city of the addressdbt/addresses
zipcodecolumn descriptionPostal code of addressdbt/addresses
town_cityglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1adbt/addresses
zipcodeglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1adbt/addresses
descriptionContains multiple shipping and billing addresses for customersdbt/addresses
domainData Platform Teamdbt/addresses
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/addresses
ownerurn:li:corpuser:b2fd91.EMP006dbt/addresses
snowflake/COUNTRIES8 gaps
columnkindvalue it is missingcopied from
country_codecolumn descriptionISO two-letter country codedbt/countries
country_idcolumn descriptionUnique identifier for the countrydbt/countries
country_namecolumn descriptionName of the countrydbt/countries
nls_territorycolumn descriptionNLS territory setting for localizationdbt/countries
descriptionReference table for country informationdbt/countries
domainData Platform Teamdbt/countries
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/countries
ownerurn:li:corpuser:b2fd91.EMP006dbt/countries
snowflake/CUSTOMERS1 gap
columnkindvalue it is missingcopied from
descriptionContains customer demographic and contact informationdbt/customers
snowflake/INVENTORIES10 gaps
columnkindvalue it is missingcopied from
max_stock_levelcolumn descriptionMaximum storage capacity for this productdbt/inventories
product_idcolumn descriptionForeign key to the products tabledbt/inventories
quantity_on_handcolumn descriptionCurrent inventory count for this product in this warehousedbt/inventories
reorder_quantitycolumn descriptionStandard reorder quantity when restockingdbt/inventories
restock_levelcolumn descriptionThreshold at which restocking is initiateddbt/inventories
warehouse_idcolumn descriptionForeign key to the warehouses tabledbt/inventories
descriptionTracks product inventory levels across warehousesdbt/inventories
domainData Platform Teamdbt/inventories
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/inventories
ownerurn:li:corpuser:b2fd91.EMP006dbt/inventories
snowflake/ORDERS1 gap
columnkindvalue it is missingcopied from
descriptionContains header information for customer ordersdbt/orders
snowflake/ORDER_DETAILS10 gaps
columnkindvalue it is missingcopied from
description# Order Details Model ## Overview The `order_details` model provides a comprehensive view of customer orders by combining data from multiple tables in the `order_entry` schema. It includes detailed information about orders, customers, products, shipping, billing, inventory, and promotions. This denormalized view is designed to support reporting, analysis, and operational insights across the order management process. ## Model Information - **Name**: `order_details` - **Type**: View - **Source Schema**: `order_entry` - **Database**: `order_entry_db` - **Update Frequency**: Refreshed on query with current timestamp ## Data Structure ### Order Information | Column | Type | Description | Example | | --------------------- | ------------ | ---------------------------------------------------------- | ---------------------------------- | | order_id | NUMBER | Unique identifier for the order | 12345 | | order_date | TIMESTAMP_TZ | Date and time when the order was placed including timezone | 2023-05-01 14:30:00-07:00 | | order_mode | VARCHAR | Method of order placement | 'online', 'phone', 'direct' | | order_status | NUMBER | Current status of the order | 1=Pending, 2=Processing, 3=Shipped | | order_total | NUMBER | Total monetary value of the order | 156.78 | | cost_of_delivery | NUMBER | Shipping and handling cost | 12.99 | | delivery_type | VARCHAR | Shipping method | 'Standard', 'Express', 'Overnight' | | wait_till_complete_yn | VARCHAR | Ship complete order or partial | 'Y', 'N' | | payment_method_code | VARCHAR | Code indicating payment method used | 'CC', 'PayPal', 'ApplePay' | ### Customer Information | Column | Type | Description | Example | | --------------- | ------- | ---------------------------------- | ---------------------------- | | customer_id | NUMBER | Unique identifier for the customer | 5001 | | cust_first_name | VARCHAR | Customer first name | 'John' | | cust_last_name | VARCHAR | Customer last name | 'Smith' | | cust_email | VARCHAR | Customer email address | 'john.smith@example.com' | | phone_number | VARCHAR | Customer contact phone number | '555-123-4567' | | customer_class | VARCHAR | Classification of the customer | 'Platinum', 'Gold', 'Silver' | ### Billing Address Information | Column | Type | Description | Example | | --------------------- | ------- | --------------------------------------------- | --------------- | | billing_address_line1 | VARCHAR | First line of customer billing address | '123 Main St' | | billing_address_line2 | VARCHAR | Second line of customer billing address | 'Apt 4B' | | billing_town_city | VARCHAR | Town or city of customer billing address | 'Springfield' | | billing_country | VARCHAR | Country name for the billing address | 'United States' | | billing_zipcode | VARCHAR | Postal code of customer billing address | '12345' | | billing_region | VARCHAR | Region/state/province for the billing address | 'Illinois' | ### Shipping Address Information | Column | Type | Description | Example | | ---------------------- | ------- | ------------------------------------------ | --------------- | | shipping_address_line1 | VARCHAR | First line of customer shipping address | '456 Oak St' | | shipping_address_line2 | VARCHAR | Second line of customer shipping address | 'Suite 101' | | shipping_town_city | VARCHAR | Town or city of customer shipping address | 'Chicago' | | shipping_country | VARCHAR | Country name for the shipping address | 'United States' | | shipping_zipcode | VARCHAR | Postal code of customer shipping address | '60601' | | shipping_region | VARCHAR | Region/state/province for shipping address | 'Illinois' | ### Warehouse Information | Column | Type | Description | Example | | -------------- | ------- | ------------------------------------------------ | ----------------------------- | | warehouse_id | NUMBER | Identifier of the warehouse fulfilling the order | 3 | | warehouse_name | VARCHAR | Name of the warehouse location | 'Chicago Distribution Center' | ### Promotion Information | Column | Type | Description | Example | | --------------------- | ------- | ------------------------------------------------ | ---------------------------- | | promotion_id | NUMBER | Identifier of the promotion applied to the order | 42 | | promotion_name | VARCHAR | Name of the marketing promotion | 'Summer Sale 2023' | | promotion_description | VARCHAR | Detailed description of the promotion | '20% off all summer apparel' | ### Order Line Item Information | Column | Type | Description | Example | | ------------------- | ------- | ------------------------------------------------------ | --------------------------------------------- | | line_item_id | NUMBER | Line item sequence number within the order | 1 | | product_id | NUMBER | Identifier of the product ordered | 10042 | | product_name | VARCHAR | Name of the product | 'Ergonomic Office Chair' | | product_description | VARCHAR | Brief description of the product | 'Adjustable office chair with lumbar support' | | category_id | NUMBER | Identifier of the product category | 15 | | category_name | VARCHAR | Name of the product category | 'Office Furniture' | | unit_price | NUMBER | Selling price per unit at time of order | 149.99 | | quantity | NUMBER | Number of units ordered | 2 | | line_total | NUMBER | Total price for the line item (unit_price \* quantity) | 299.98 | | dispatch_date | DATE | Date when item was dispatched from warehouse | 2023-05-03 | | return_date | DATE | Date when item was returned if applicable | 2023-05-15 | | gift_wrap | VARCHAR | Flag or type of gift wrapping requested | 'Y', 'Premium', 'Basic' | | condition | VARCHAR | Condition of product | 'New', 'Refurbished' | | estimated_delivery | DATE | Estimated delivery date for this item | 2023-05-07 | | list_price | NUMBER | Standard list price for the product | 179.99 | | product_status | VARCHAR | Current status of the product | 'Available', 'Discontinued' | | quantity_on_hand | NUMBER | Current inventory count in the fulfilling warehouse | 24 | | stock_status | VARCHAR | Status of current inventory levels | 'Low Stock', 'In Stock', 'Overstocked' | ### Calculated Fields | Column | Type | Description | Example | | ---------------- | ------- | ---------------------------------------------------- | ---------------------------------------- | | discount_amount | NUMBER | Amount of discount applied (list_price - unit_price) | 30.00 | | discount_percent | NUMBER | Percentage discount applied | 16.67 | | delivery_status | VARCHAR | Current status of delivery | 'Not Shipped', 'In Transit', 'Delivered' | | return_status | VARCHAR | Status indicating if item was returned | 'Returned', 'Not Returned' | ### Timestamp Information | Column | Type | Description | Example | | ---------- | ------------ | ----------------------------------------------------------------------- | ----------------------------------- | | updated_at | TIMESTAMP_TZ | Timestamp when this record was last refreshed with nanosecond precision | 2023-07-15 08:23:45.123456789-07:00 | ## Sources and Joins This model combines data from the following source tables: - `orders` - Primary table containing order header information - `customers` - Customer demographic and contact information - `addresses` - Billing and shipping address details - `countries` - Country information for addresses - `regions` - Regional information for addresses - `warehouses` - Warehouse details for order fulfillment - `promotions` - Promotion information applied to orders - `order_items` - Individual line items within each order - `products` - Product information for ordered items - `product_categories` - Category information for products - `inventories` - Inventory levels for products at warehouses ## Data Tests The following data quality tests are applied to this model: ### Primary Key Tests - `order_id` and `line_item_id` combination is unique - `order_id` is not null ### Referential Integrity Tests - `customer_id` exists in the customers table - `product_id` exists in the products table - `warehouse_id` exists in the warehouses table - `promotion_id` exists in the promotions table (when not null) - `category_id` exists in the product_categories table ### Value Tests - `unit_price` and `quantity` are positive values - `line_total` equals `unit_price` \* `quantity` - `order_status` contains valid status codes - `wait_till_complete_yn` contains only 'Y' or 'N' - `stock_status` contains only valid values: 'Low Stock', 'In Stock', 'Overstocked', 'Unknown' - `delivery_status` contains only valid values: 'Not Shipped', 'In Transit', 'Delivered', 'Unknown' - `return_status` contains only valid values: 'Returned', 'Not Returned' ## Usage Examples ### Basic Order Query ```sql SELECT order_id, order_date, cust_first_name || ' ' || cust_last_name AS customer_name, order_total, delivery_status FROM order_details WHERE order_date >= DATEADD(month, -1, CURRENT_DATE()) ORDER BY order_date DESC ``` ### Order Analysis by Category ```sql SELECT category_name, COUNT(DISTINCT order_id) AS order_count, SUM(line_total) AS total_revenue, AVG(discount_percent) AS avg_discount_pct FROM order_details WHERE order_date >= DATEADD(year, -1, CURRENT_DATE()) GROUP BY category_name ORDER BY total_revenue DESC ``` ### Delivery Performance ```sql SELECT warehouse_name, delivery_type, AVG(DATEDIFF(day, order_date, dispatch_date)) AS avg_processing_days, AVG(DATEDIFF(day, dispatch_date, estimated_delivery)) AS avg_transit_days, COUNT(*) AS shipment_count FROM order_details WHERE dispatch_date IS NOT NULL AND order_date >= DATEADD(month, -6, CURRENT_DATE()) GROUP BY warehouse_name, delivery_type ORDER BY warehouse_name, avg_processing_days ``` ### Returns Analysis ```sql SELECT product_name, COUNT(*) AS total_ordered, SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) AS total_returned, (SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) / COUNT(*)::float) * 100 AS return_rate FROM order_details WHERE order_date >= DATEADD(month, -3, CURRENT_DATE()) GROUP BY product_name HAVING COUNT(*) > 10 ORDER BY return_rate DESC LIMIT 20 ``` ## Maintenance and Refresh As a view, this model is refreshed with each query. The timestamp indicates when the data was last queried and can be used to track data freshness. Since the model pulls directly from source tables, it always reflects the current state of the data. `updated_at` ## Dependencies This model depends on: - Source tables from the schema `order_entry` - Any data quality tests defined in the file `schema.yml` ## Additional Notes - This model includes sensitive customer information. Ensure appropriate access controls are in place. - Performance considerations: This view joins multiple tables and may be resource-intensive for large datasets. Consider materializing as a table with scheduled refreshes for frequent reporting needs. - For large reporting needs, consider creating aggregated models derived from this model rather than running complex aggregations directly.dbt/order_details
ownerurn:li:corpGroup:b2fd91.ORG_BACKEND_ENGlooker/Order Details
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/order_details
ownerurn:li:corpuser:b2fd91.EMP006dbt/order_details
ownerurn:li:corpuser:b2fd91.alex@example.comlooker/order_details
ownerurn:li:corpuser:b2fd91.bryan@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny2@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.kirk@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.marty@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.sam@example.comdbt/order_details
snowflake/ORDER_DETAILS_REPLICA13 gaps
columnkindvalue it is missingcopied from
description# Order Details Model ## Overview The `order_details` model provides a comprehensive view of customer orders by combining data from multiple tables in the `order_entry` schema. It includes detailed information about orders, customers, products, shipping, billing, inventory, and promotions. This denormalized view is designed to support reporting, analysis, and operational insights across the order management process. ## Model Information - **Name**: `order_details` - **Type**: View - **Source Schema**: `order_entry` - **Database**: `order_entry_db` - **Update Frequency**: Refreshed on query with current timestamp ## Data Structure ### Order Information | Column | Type | Description | Example | | --------------------- | ------------ | ---------------------------------------------------------- | ---------------------------------- | | order_id | NUMBER | Unique identifier for the order | 12345 | | order_date | TIMESTAMP_TZ | Date and time when the order was placed including timezone | 2023-05-01 14:30:00-07:00 | | order_mode | VARCHAR | Method of order placement | 'online', 'phone', 'direct' | | order_status | NUMBER | Current status of the order | 1=Pending, 2=Processing, 3=Shipped | | order_total | NUMBER | Total monetary value of the order | 156.78 | | cost_of_delivery | NUMBER | Shipping and handling cost | 12.99 | | delivery_type | VARCHAR | Shipping method | 'Standard', 'Express', 'Overnight' | | wait_till_complete_yn | VARCHAR | Ship complete order or partial | 'Y', 'N' | | payment_method_code | VARCHAR | Code indicating payment method used | 'CC', 'PayPal', 'ApplePay' | ### Customer Information | Column | Type | Description | Example | | --------------- | ------- | ---------------------------------- | ---------------------------- | | customer_id | NUMBER | Unique identifier for the customer | 5001 | | cust_first_name | VARCHAR | Customer first name | 'John' | | cust_last_name | VARCHAR | Customer last name | 'Smith' | | cust_email | VARCHAR | Customer email address | 'john.smith@example.com' | | phone_number | VARCHAR | Customer contact phone number | '555-123-4567' | | customer_class | VARCHAR | Classification of the customer | 'Platinum', 'Gold', 'Silver' | ### Billing Address Information | Column | Type | Description | Example | | --------------------- | ------- | --------------------------------------------- | --------------- | | billing_address_line1 | VARCHAR | First line of customer billing address | '123 Main St' | | billing_address_line2 | VARCHAR | Second line of customer billing address | 'Apt 4B' | | billing_town_city | VARCHAR | Town or city of customer billing address | 'Springfield' | | billing_country | VARCHAR | Country name for the billing address | 'United States' | | billing_zipcode | VARCHAR | Postal code of customer billing address | '12345' | | billing_region | VARCHAR | Region/state/province for the billing address | 'Illinois' | ### Shipping Address Information | Column | Type | Description | Example | | ---------------------- | ------- | ------------------------------------------ | --------------- | | shipping_address_line1 | VARCHAR | First line of customer shipping address | '456 Oak St' | | shipping_address_line2 | VARCHAR | Second line of customer shipping address | 'Suite 101' | | shipping_town_city | VARCHAR | Town or city of customer shipping address | 'Chicago' | | shipping_country | VARCHAR | Country name for the shipping address | 'United States' | | shipping_zipcode | VARCHAR | Postal code of customer shipping address | '60601' | | shipping_region | VARCHAR | Region/state/province for shipping address | 'Illinois' | ### Warehouse Information | Column | Type | Description | Example | | -------------- | ------- | ------------------------------------------------ | ----------------------------- | | warehouse_id | NUMBER | Identifier of the warehouse fulfilling the order | 3 | | warehouse_name | VARCHAR | Name of the warehouse location | 'Chicago Distribution Center' | ### Promotion Information | Column | Type | Description | Example | | --------------------- | ------- | ------------------------------------------------ | ---------------------------- | | promotion_id | NUMBER | Identifier of the promotion applied to the order | 42 | | promotion_name | VARCHAR | Name of the marketing promotion | 'Summer Sale 2023' | | promotion_description | VARCHAR | Detailed description of the promotion | '20% off all summer apparel' | ### Order Line Item Information | Column | Type | Description | Example | | ------------------- | ------- | ------------------------------------------------------ | --------------------------------------------- | | line_item_id | NUMBER | Line item sequence number within the order | 1 | | product_id | NUMBER | Identifier of the product ordered | 10042 | | product_name | VARCHAR | Name of the product | 'Ergonomic Office Chair' | | product_description | VARCHAR | Brief description of the product | 'Adjustable office chair with lumbar support' | | category_id | NUMBER | Identifier of the product category | 15 | | category_name | VARCHAR | Name of the product category | 'Office Furniture' | | unit_price | NUMBER | Selling price per unit at time of order | 149.99 | | quantity | NUMBER | Number of units ordered | 2 | | line_total | NUMBER | Total price for the line item (unit_price \* quantity) | 299.98 | | dispatch_date | DATE | Date when item was dispatched from warehouse | 2023-05-03 | | return_date | DATE | Date when item was returned if applicable | 2023-05-15 | | gift_wrap | VARCHAR | Flag or type of gift wrapping requested | 'Y', 'Premium', 'Basic' | | condition | VARCHAR | Condition of product | 'New', 'Refurbished' | | estimated_delivery | DATE | Estimated delivery date for this item | 2023-05-07 | | list_price | NUMBER | Standard list price for the product | 179.99 | | product_status | VARCHAR | Current status of the product | 'Available', 'Discontinued' | | quantity_on_hand | NUMBER | Current inventory count in the fulfilling warehouse | 24 | | stock_status | VARCHAR | Status of current inventory levels | 'Low Stock', 'In Stock', 'Overstocked' | ### Calculated Fields | Column | Type | Description | Example | | ---------------- | ------- | ---------------------------------------------------- | ---------------------------------------- | | discount_amount | NUMBER | Amount of discount applied (list_price - unit_price) | 30.00 | | discount_percent | NUMBER | Percentage discount applied | 16.67 | | delivery_status | VARCHAR | Current status of delivery | 'Not Shipped', 'In Transit', 'Delivered' | | return_status | VARCHAR | Status indicating if item was returned | 'Returned', 'Not Returned' | ### Timestamp Information | Column | Type | Description | Example | | ---------- | ------------ | ----------------------------------------------------------------------- | ----------------------------------- | | updated_at | TIMESTAMP_TZ | Timestamp when this record was last refreshed with nanosecond precision | 2023-07-15 08:23:45.123456789-07:00 | ## Sources and Joins This model combines data from the following source tables: - `orders` - Primary table containing order header information - `customers` - Customer demographic and contact information - `addresses` - Billing and shipping address details - `countries` - Country information for addresses - `regions` - Regional information for addresses - `warehouses` - Warehouse details for order fulfillment - `promotions` - Promotion information applied to orders - `order_items` - Individual line items within each order - `products` - Product information for ordered items - `product_categories` - Category information for products - `inventories` - Inventory levels for products at warehouses ## Data Tests The following data quality tests are applied to this model: ### Primary Key Tests - `order_id` and `line_item_id` combination is unique - `order_id` is not null ### Referential Integrity Tests - `customer_id` exists in the customers table - `product_id` exists in the products table - `warehouse_id` exists in the warehouses table - `promotion_id` exists in the promotions table (when not null) - `category_id` exists in the product_categories table ### Value Tests - `unit_price` and `quantity` are positive values - `line_total` equals `unit_price` \* `quantity` - `order_status` contains valid status codes - `wait_till_complete_yn` contains only 'Y' or 'N' - `stock_status` contains only valid values: 'Low Stock', 'In Stock', 'Overstocked', 'Unknown' - `delivery_status` contains only valid values: 'Not Shipped', 'In Transit', 'Delivered', 'Unknown' - `return_status` contains only valid values: 'Returned', 'Not Returned' ## Usage Examples ### Basic Order Query ```sql SELECT order_id, order_date, cust_first_name || ' ' || cust_last_name AS customer_name, order_total, delivery_status FROM order_details WHERE order_date >= DATEADD(month, -1, CURRENT_DATE()) ORDER BY order_date DESC ``` ### Order Analysis by Category ```sql SELECT category_name, COUNT(DISTINCT order_id) AS order_count, SUM(line_total) AS total_revenue, AVG(discount_percent) AS avg_discount_pct FROM order_details WHERE order_date >= DATEADD(year, -1, CURRENT_DATE()) GROUP BY category_name ORDER BY total_revenue DESC ``` ### Delivery Performance ```sql SELECT warehouse_name, delivery_type, AVG(DATEDIFF(day, order_date, dispatch_date)) AS avg_processing_days, AVG(DATEDIFF(day, dispatch_date, estimated_delivery)) AS avg_transit_days, COUNT(*) AS shipment_count FROM order_details WHERE dispatch_date IS NOT NULL AND order_date >= DATEADD(month, -6, CURRENT_DATE()) GROUP BY warehouse_name, delivery_type ORDER BY warehouse_name, avg_processing_days ``` ### Returns Analysis ```sql SELECT product_name, COUNT(*) AS total_ordered, SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) AS total_returned, (SUM(CASE WHEN return_status = 'Returned' THEN 1 ELSE 0 END) / COUNT(*)::float) * 100 AS return_rate FROM order_details WHERE order_date >= DATEADD(month, -3, CURRENT_DATE()) GROUP BY product_name HAVING COUNT(*) > 10 ORDER BY return_rate DESC LIMIT 20 ``` ## Maintenance and Refresh As a view, this model is refreshed with each query. The timestamp indicates when the data was last queried and can be used to track data freshness. Since the model pulls directly from source tables, it always reflects the current state of the data. `updated_at` ## Dependencies This model depends on: - Source tables from the schema `order_entry` - Any data quality tests defined in the file `schema.yml` ## Additional Notes - This model includes sensitive customer information. Ensure appropriate access controls are in place. - Performance considerations: This view joins multiple tables and may be resource-intensive for large datasets. Consider materializing as a table with scheduled refreshes for frequent reporting needs. - For large reporting needs, consider creating aggregated models derived from this model rather than running complex aggregations directly.dbt/order_details
ownerurn:li:corpGroup:b2fd91.1e0398a3-113f-475e-b6fc-32ab72a634d2dbt/order_details
ownerurn:li:corpGroup:b2fd91.ORG_BACKEND_ENGlooker/Order Details
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/order_details
ownerurn:li:corpuser:b2fd91.EMP006dbt/order_details
ownerurn:li:corpuser:b2fd91.alex@example.comlooker/order_details
ownerurn:li:corpuser:b2fd91.brock1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.bryan@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny1@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.jonny2@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.kirk@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.marty@example.comdbt/order_details
ownerurn:li:corpuser:b2fd91.sam@example.comdbt/order_details
snowflake/ORDER_HISTORY2 gaps
columnkindvalue it is missingcopied from
descriptionIncremental table containing all historical order informationdbt/order_history
domainE-Commercedbt/order_history
snowflake/ORDER_ITEMS16 gaps
columnkindvalue it is missingcopied from
conditioncolumn descriptionCondition of product (e.g., New, Refurbished)dbt/order_items
dispatch_datecolumn descriptionDate when item was dispatched from warehousedbt/order_items
estimated_deliverycolumn descriptionEstimated delivery date for this itemdbt/order_items
gift_wrapcolumn descriptionFlag or type of gift wrapping requesteddbt/order_items
line_item_idcolumn descriptionLine item sequence number within the orderdbt/order_items
order_idcolumn descriptionForeign key to the orders tabledbt/order_items
product_idcolumn descriptionForeign key to the products tabledbt/order_items
quantitycolumn descriptionNumber of units ordereddbt/order_items
return_datecolumn descriptionDate when item was returned if applicabledbt/order_items
supplier_idcolumn descriptionID of the supplier if dropshippeddbt/order_items
unit_pricecolumn descriptionSelling price per unit at time of orderdbt/order_items
order_idglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1as3/order_items
descriptionContains line items for each orderdbt/order_items
domainData Platform Teamdbt/order_items
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/order_items
ownerurn:li:corpuser:b2fd91.EMP006dbt/order_items
snowflake/PRODUCTS1 gap
columnkindvalue it is missingcopied from
descriptionContains information about products available for saledbt/products
snowflake/PRODUCT_CATEGORIES8 gaps
columnkindvalue it is missingcopied from
category_descriptioncolumn descriptionDetailed description of the product categorydbt/product_categories
category_idcolumn descriptionUnique identifier for the product categorydbt/product_categories
category_namecolumn descriptionName of the product categorydbt/product_categories
parent_category_idcolumn descriptionSelf-referential key to parent category (allows hierarchy)dbt/product_categories
descriptionHierarchical product category classification systemdbt/product_categories
domainData Platform Teamdbt/product_categories
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/product_categories
ownerurn:li:corpuser:b2fd91.EMP006dbt/product_categories
snowflake/PROMOTIONS12 gaps
columnkindvalue it is missingcopied from
promotion_costcolumn descriptionBudgeted cost of running the promotiondbt/promotions
promotion_descriptioncolumn descriptionDetailed description of the promotiondbt/promotions
promotion_end_datecolumn descriptionEnding date of the promotiondbt/promotions
promotion_idcolumn descriptionUnique identifier for the promotiondbt/promotions
promotion_namecolumn descriptionName of the marketing promotiondbt/promotions
promotion_start_datecolumn descriptionStarting date of the promotiondbt/promotions
promotion_descriptioncolumn tagurn:li:tag:b2fd91.No Sample Valuesdbt/promotions
promotion_idglossary termurn:li:glossaryTerm:b2fd91.1598cf93-c199-43a1-8833-fce96faa9a1as3/promotions
descriptionContains information about marketing promotions and campaignsdbt/promotions
domainData Platform Teamdbt/promotions
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/promotions
ownerurn:li:corpuser:b2fd91.EMP006dbt/promotions
snowflake/REGIONS8 gaps
columnkindvalue it is missingcopied from
country_idcolumn descriptionForeign key to the countries tabledbt/regions
nls_languagecolumn descriptionDefault language code for the regiondbt/regions
region_idcolumn descriptionUnique identifier for the regiondbt/regions
region_namecolumn descriptionName of the region (state, province, etc.)dbt/regions
descriptionReference table for regional information within countriesdbt/regions
domainData Platform Teamdbt/regions
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/regions
ownerurn:li:corpuser:b2fd91.EMP006dbt/regions
snowflake/WAREHOUSES8 gaps
columnkindvalue it is missingcopied from
location_idcolumn descriptionReference to the physical locationdbt/warehouses
warehouse_idcolumn descriptionUnique identifier for the warehousedbt/warehouses
warehouse_namecolumn descriptionName of the warehouse locationdbt/warehouses
wh_geo_locationcolumn descriptionGeographic coordinates of the warehousedbt/warehouses
descriptionContains information about physical distribution centersdbt/warehouses
domainData Platform Teamdbt/warehouses
ownerurn:li:corpGroup:b2fd91.ORG_DATA_PLATFORMdbt/warehouses
ownerurn:li:corpuser:b2fd91.EMP006dbt/warehouses
tableau/Custom SQL Query · 37fcfb1512 gaps
columnkindvalue it is missingcopied from
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:COLUMNFIELDtableau/Order Mode
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:MEASUREtableau/Order Mode
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:SUMtableau/Order Mode
ORDER_COUNTcolumn tagurn:li:tag:COLUMNFIELDtableau/Order Mode
ORDER_COUNTcolumn tagurn:li:tag:MEASUREtableau/Order Mode
ORDER_COUNTcolumn tagurn:li:tag:SUMtableau/Order Mode
ORDER_MODEcolumn tagurn:li:tag:COLUMNFIELDtableau/Order Mode
ORDER_MODEcolumn tagurn:li:tag:MEASUREtableau/Order Mode
TOTAL_REVENUEcolumn tagurn:li:tag:COLUMNFIELDtableau/Order Mode
TOTAL_REVENUEcolumn tagurn:li:tag:MEASUREtableau/Order Mode
TOTAL_REVENUEcolumn tagurn:li:tag:SUMtableau/Order Mode
ownerurn:li:corpuser:b2fd91.brock1@example.comtableau/Order Mode
tableau/Custom SQL Query · 4a3af1dd12 gaps
columnkindvalue it is missingcopied from
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:COLUMNFIELDtableau/Top Product Category
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:MEASUREtableau/Top Product Category
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:SUMtableau/Top Product Category
CATEGORY_NAMEcolumn tagurn:li:tag:COLUMNFIELDtableau/Top Product Category
CATEGORY_NAMEcolumn tagurn:li:tag:DIMENSIONtableau/Top Product Category
ORDERS_COUNTcolumn tagurn:li:tag:COLUMNFIELDtableau/Top Product Category
ORDERS_COUNTcolumn tagurn:li:tag:MEASUREtableau/Top Product Category
ORDERS_COUNTcolumn tagurn:li:tag:SUMtableau/Top Product Category
TOTAL_REVENUEcolumn tagurn:li:tag:COLUMNFIELDtableau/Top Product Category
TOTAL_REVENUEcolumn tagurn:li:tag:MEASUREtableau/Top Product Category
TOTAL_REVENUEcolumn tagurn:li:tag:SUMtableau/Top Product Category
ownerurn:li:corpuser:b2fd91.brock1@example.comtableau/Top Product Category
tableau/Custom SQL Query · 8bfe748316 gaps
columnkindvalue it is missingcopied from
AVERAGE_DISCOUNT_PERCENTcolumn tagurn:li:tag:COLUMNFIELDtableau/Promotions
AVERAGE_DISCOUNT_PERCENTcolumn tagurn:li:tag:MEASUREtableau/Promotions
AVERAGE_DISCOUNT_PERCENTcolumn tagurn:li:tag:SUMtableau/Promotions
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:COLUMNFIELDtableau/Promotions
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:MEASUREtableau/Promotions
AVERAGE_ORDER_VALUEcolumn tagurn:li:tag:SUMtableau/Promotions
ORDERS_WITH_PROMOTIONcolumn tagurn:li:tag:COLUMNFIELDtableau/Promotions
ORDERS_WITH_PROMOTIONcolumn tagurn:li:tag:MEASUREtableau/Promotions
ORDERS_WITH_PROMOTIONcolumn tagurn:li:tag:SUMtableau/Promotions
PROMOTION_NAMEcolumn tagurn:li:tag:COLUMNFIELDtableau/Promotions
PROMOTION_NAMEcolumn tagurn:li:tag:COUNTtableau/Promotions
PROMOTION_NAMEcolumn tagurn:li:tag:DIMENSIONtableau/Promotions
TOTAL_REVENUEcolumn tagurn:li:tag:COLUMNFIELDtableau/Promotions
TOTAL_REVENUEcolumn tagurn:li:tag:MEASUREtableau/Promotions
TOTAL_REVENUEcolumn tagurn:li:tag:SUMtableau/Promotions
ownerurn:li:corpuser:b2fd91.brock1@example.comtableau/Promotions
tableau/Custom SQL Query · f32082e513 gaps
columnkindvalue it is missingcopied from
CATEGORY_NAMEcolumn tagurn:li:tag:COLUMNFIELDtableau/Orders By Day
CATEGORY_NAMEcolumn tagurn:li:tag:COUNTtableau/Orders By Day
CATEGORY_NAMEcolumn tagurn:li:tag:DIMENSIONtableau/Orders By Day
ORDER_COUNTcolumn tagurn:li:tag:COLUMNFIELDtableau/Orders By Day
ORDER_COUNTcolumn tagurn:li:tag:MEASUREtableau/Orders By Day
ORDER_COUNTcolumn tagurn:li:tag:SUMtableau/Orders By Day
ORDER_DATEcolumn tagurn:li:tag:COLUMNFIELDtableau/Orders By Day
ORDER_DATEcolumn tagurn:li:tag:COUNTtableau/Orders By Day
ORDER_DATEcolumn tagurn:li:tag:DIMENSIONtableau/Orders By Day
TOTAL_SALEScolumn tagurn:li:tag:COLUMNFIELDtableau/Orders By Day
TOTAL_SALEScolumn tagurn:li:tag:MEASUREtableau/Orders By Day
TOTAL_SALEScolumn tagurn:li:tag:SUMtableau/Orders By Day
ownerurn:li:corpuser:b2fd91.brock1@example.comtableau/Orders By Day

Why these are the same data

Names are wrong about one time in five, and the lineage graph is worse. Every one of the 88 same-name pairs in this catalog is connected — and so is every one of the 316 pairs picked at random. Connectivity carries no information at all, and distance carries almost none:

Lineage distance for same-name pairs
and for pairs picked at random: two distributions that overlap, with no
threshold separating them

So structure only proposes. A model decides, one pair at a time, and its reason is kept. A reason is a comment, not a verified fact — which is exactly why none of them is ever written into the catalog.

addresses / ADDRESSESdbt · postgres · s3 · snowflake6 pairs judged
dbt/addressespostgres/addressess3/addressessnowflake/ADDRESSES
countries / COUNTRIESdbt · postgres · s3 · snowflake6 pairs judged
dbt/countriespostgres/countriess3/countriessnowflake/COUNTRIES
Custom SQL Query / Order Modetableau · tableau1 pair judged
tableau/Custom SQL Querytableau/Order Mode
Custom SQL Query / Orders By Daytableau · tableau1 pair judged
tableau/Custom SQL Querytableau/Orders By Day
Custom SQL Query / Promotionstableau · tableau1 pair judged
tableau/Custom SQL Querytableau/Promotions
Custom SQL Query / Top Product Categorytableau · tableau1 pair judged
tableau/Custom SQL Querytableau/Top Product Category
customers / CUSTOMERSdbt · postgres · s3 · snowflake6 pairs judged
dbt/customerspostgres/customerss3/customerssnowflake/CUSTOMERS
inventories / INVENTORIESdbt · postgres · s3 · snowflake6 pairs judged
dbt/inventoriespostgres/inventoriess3/inventoriessnowflake/INVENTORIES
order_details / Order Details / ORDER_DETAILS / ORDER_DETAILS_REPLICAdbt · looker · looker · powerbi · snowflake · snowflake12 pairs judged
dbt/order_detailslooker/order_detailslooker/Order Detailspowerbi/ORDER_DETAILSsnowflake/ORDER_DETAILSsnowflake/ORDER_DETAILS_REPLICA
order_history / ORDER_HISTORYdbt · snowflake1 pair judged
dbt/order_historysnowflake/ORDER_HISTORY
order_items / ORDER_ITEMSdbt · postgres · s3 · snowflake6 pairs judged
dbt/order_itemspostgres/order_itemss3/order_itemssnowflake/ORDER_ITEMS
orders / ORDERSdbt · postgres · s3 · snowflake6 pairs judged
dbt/orderspostgres/orderss3/orderssnowflake/ORDERS
product_categories / PRODUCT_CATEGORIESdbt · postgres · s3 · snowflake6 pairs judged
dbt/product_categoriespostgres/product_categoriess3/product_categoriessnowflake/PRODUCT_CATEGORIES
product_informationpostgres · s31 pair judged
postgres/product_informations3/product_information
products / PRODUCTSdbt · postgres · s3 · snowflake6 pairs judged
dbt/productspostgres/productss3/productssnowflake/PRODUCTS
promotions / PROMOTIONSdbt · postgres · s3 · snowflake6 pairs judged
dbt/promotionspostgres/promotionss3/promotionssnowflake/PROMOTIONS
regions / REGIONSdbt · postgres · s3 · snowflake6 pairs judged
dbt/regionspostgres/regionss3/regionssnowflake/REGIONS
warehouses / WAREHOUSESdbt · postgres · s3 · snowflake6 pairs judged
dbt/warehousespostgres/warehousess3/warehousessnowflake/WAREHOUSES

Writing takes a second argument

Asking Fadlie to fix a dataset does not fix it. The dry run is the default in the code, not in the interface, so a call that forgets the flag changes nothing at all. Here is the answer to apply_governance(dataset="order_details"), exactly as the deployed agent returned it:

dry_run true
applied 0
would_apply 56
summary 56 gaps simulated, nothing was written