-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathretail_oders_data_contract.yml
More file actions
87 lines (87 loc) · 1.81 KB
/
retail_oders_data_contract.yml
File metadata and controls
87 lines (87 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
dataset: datasource/database/schema/retail_orders
checks:
- schema: {}
- freshness:
column: created_at
threshold:
unit: hour
must_be_less_than_or_equal: 24
columns:
- name: order_id
data_type: string
checks:
- missing:
name: No missing value
- name: product_id
data_type: string
checks:
- missing:
name: No missing values
- name: customer_id
data_type: string
checks:
- missing:
name: No missing values
- name: order_quantity
data_type: integer
checks:
- missing:
- invalid:
name: Positive quantity
valid_min: 1
- name: discount
data_type: float
checks:
- invalid:
name: Positive quantity
valid_min: 1
- name: discount_currency
data_type: string
checks:
- invalid:
name: Allowed currency is USD
valid_values:
- usd
- name: billing_address
data_type: string
checks:
- missing:
- name: shipping_address
data_type: string
checks:
- missing:
- name: payment_method
data_type: string
checks:
- missing:
- invalid:
name: Allowed payment methods
valid_values:
- cash
- credit_card
- transfer
- name: order_date
data_type: dateTime
checks:
- missing:
- name: ship_date
data_type: dateTime
checks:
- missing:
- name: country_code
data_type: string
checks:
- missing:
- invalid:
name: Two-letter country code
valid_format:
regex: ^[A-Za-z]{2}$
name: Exactly two letters
- name: total_order_value
data_type: float
checks:
- missing:
- name: created_at
data_type: dateTime
checks:
- missing: