forked from dunnhumby/data-faker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.yaml
90 lines (88 loc) · 1.75 KB
/
example.yaml
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
88
89
90
tables:
- name: card_dim_c
rows: 10
columns:
- name: card_id
data_type: Int
column_type: Sequential
start: 0
step: 1
- name: card_code
column_type: Expression
expression: concat('0000000000', card_id)
- name: hshd_id
data_type: Int
column_type: Sequential
start: 0
step: 1
- name: hshd_code
column_type: Expression
expression: concat('0000000000', hshd_id)
- name: prsn_id
data_type: Int
column_type: Sequential
start: 0
step: 1
- name: prsn_code
column_type: Expression
expression: concat('0000000000', prsn_id)
- name: hshd_isba_market_code
column_type: Expression
expression: concat('isba', hshd_code)
- name: transaction_item_fct_data
rows: 100
columns:
- name: card_id
data_type: Int
column_type: Random
min: 0
max: 10
- name: prod_id
data_type: Int
column_type: Random
min: 0
max: 1000
- name: store_id
data_type: Int
column_type: Random
min: 0
max: 10
- name: item_qty
data_type: Int
column_type: Random
min: 0
max: 10
- name: item_cost
data_type: Float
column_type: Random
min: 1
max: 5
decimal_places: 2
- name: item_discount
data_type: Float
column_type: Random
min: 1
max: 2
decimal_places: 2
- name: spend_amt
column_type: Expression
expression: round((item_cost * item_discount) * item_qty, 2)
- name: date_id
data_type: Date
column_type: Random
min: 2017-01-01
max: 2018-01-01
partitions:
- date_id
- name: card_dim_c_suppressions
rows: 10
columns:
- name: identifier
data_type: Int
column_type: Random
min: 0
max: 10
- name: identifier_type
data_type: String
column_type: Fixed
value: card_id