You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operational flag indicating whether the item was returned to store inventory shelf space.
46
+
**Transformation Logic:** Standardized from multi-type strings ('yes', 'y', '1' to 'Yes' / 'no', 'n', '0' to 'No'). Outliers resolve to 'Unknown'.
47
+
tests:
48
+
- not_null
49
+
- accepted_values:
50
+
arguments:
51
+
values: ['Yes', 'No', 'Unknown']
52
+
53
+
- name: return_status
54
+
description: |
55
+
Current state of the return processing lifecycle. Standardized to Title Case; missing source entries default to 'Unknown'.
56
+
tests:
57
+
- not_null
58
+
59
+
- name: handled_by_emp_id
60
+
description: |
61
+
The unique identifier of the store employee processing the return ticket. Converted to an integer data type, with missing or invalid fields coerced to NULL.
Extracts and sanitizes financial reimbursement attributes for returned orders. The model programmatically
69
+
scrubs text currency strings to isolate decimals and normalizes payment methods to support precise gross margin
70
+
reconciliation tracking.
71
+
72
+
columns:
73
+
- name: return_id
74
+
description: Unique primary key mapping to the corresponding return entry.
75
+
tests:
76
+
- unique
77
+
- not_null
78
+
79
+
- name: refund_amount
80
+
description: |
81
+
The total dollar value reimbursed back to the customer, cast to decimal(10,2) precision.
82
+
**Transformation Logic:** Strips formatting artifacts including currency symbols ('$') and thousands separators (',') before typecasting. Negative entries or un-castable formats default to NULL.
83
+
84
+
- name: refund_method
85
+
description: |
86
+
The transaction payment type used for the reimbursement (e.g., Credit Card, Cash). Standardized using Title Case, defaulting blank rows to 'Unknown'.
0 commit comments