-
Notifications
You must be signed in to change notification settings - Fork 6
/
schema.yaml
210 lines (210 loc) · 4.56 KB
/
schema.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
dds:
hubs:
part:
bk_dtype: int
supplier:
bk_dtype: int
partsupp:
bk_dtype: varchar
lineitem:
bk_dtype: varchar
orders:
bk_dtype: int
customer:
bk_dtype: int
nation:
bk_dtype: int
region:
bk_dtype: int
satellites:
part:
bk_dtype: int
columns:
name: text
mfgr: text
brand: text
type: text
size: int
container: text
retailprice: numeric
comment: text
supplier:
bk_dtype: int
columns:
name: text
address: text
phone: text
acctbal: int
comment: text
partsupp:
bk_dtype: varchar
columns:
availqty: int
supplycost: numeric
comment: text
lineitem:
bk_dtype: varchar
columns:
linenumber: int
quantity: numeric
extendedprice: numeric
discount: numeric
tax: numeric
returnflag: text
linestatus: text
shipdate: date
commitdate: date
receiptdate: date
shipinstruct: text
shipmode: text
comment: text
orders:
bk_dtype: int
columns:
orderstatus: text
totalprice: numeric
orderdate: date
orderpriority: text
shippriority: int
clerk: text
comment: text
customer:
bk_dtype: int
columns:
name: text
address: text
phone: text
acctbal: numeric
mktsegment: text
comment: text
nation:
bk_dtype: int
columns:
name: text
comment: text
region:
bk_dtype: int
columns:
name: text
comment: text
links:
- l_hub_name: customer
r_hub_name: nation
l_bk_column: c_custkey
r_bk_column: c_nationkey
- l_hub_name: nation
r_hub_name: region
l_bk_column: n_nationkey
r_bk_column: n_regionkey
- l_hub_name: orders
r_hub_name: customer
l_bk_column: o_orderkey
r_bk_column: o_custkey
- l_hub_name: lineitem
r_hub_name: orders
l_bk_column: l_lineitemkey
r_bk_column: l_orderkey
- l_hub_name: lineitem
r_hub_name: part
l_bk_column: l_lineitemkey
r_bk_column: l_partkey
- l_hub_name: lineitem
r_hub_name: supplier
l_bk_column: l_lineitemkey
r_bk_column: l_suppkey
- l_hub_name: partsupp
r_hub_name: part
l_bk_column: ps_partsuppkey
r_bk_column: ps_partkey
- l_hub_name: partsupp
r_hub_name: supplier
l_bk_column: ps_partsuppkey
r_bk_column: ps_suppkey
sources:
tables:
part:
prefix: p_
columns:
- p_partkey:
bk_for: part
- p_name: {}
- p_mfgr: {}
- p_brand: {}
- p_type: {}
- p_size: {}
- p_container: {}
- p_retailprice: {}
- p_comment: {}
supplier:
prefix: s_
columns:
- s_suppkey:
bk_for: supplier
- s_name: {}
- s_address: {}
- s_phone: {}
- s_acctbal: {}
- s_comment: {}
partsupp:
prefix: ps_
columns:
- ps_partsuppkey:
bk_for: partsupp
- ps_availqty: {}
- ps_supplycost: {}
- ps_comment: {}
lineitem:
prefix: l_
columns:
- l_lineitemkey:
bk_for: lineitem
- l_linenumber: {}
- l_quantity: {}
- l_extendedprice: {}
- l_discount: {}
- l_tax: {}
- l_returnflag: {}
- l_linestatus: {}
- l_shipdate: {}
- l_commitdate: {}
- l_receiptdate: {}
- l_shipinstruct: {}
- l_shipmode: {}
- l_comment: {}
orders:
prefix: o_
columns:
- o_orderkey:
bk_for: orders
- o_orderstatus: {}
- o_totalprice: {}
- o_orderdate: {}
- o_orderpriority: {}
- o_shippriority: {}
- o_clerk: {}
- o_comment: {}
customer:
prefix: c_
columns:
- c_custkey:
bk_for: customer
- c_name: {}
- c_address: {}
- c_phone: {}
- c_acctbal: {}
- c_mktsegment: {}
- c_comment: {}
nation:
prefix: n_
columns:
- n_nationkey:
bk_for: nation
- n_name: {}
- n_comment: {}
region:
prefix: r_
columns:
- r_regionkey:
bk_for: region
- r_name: {}
- r_comment: {}