-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathTPCC_short_schema.txt
executable file
·99 lines (85 loc) · 1.51 KB
/
TPCC_short_schema.txt
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
//size,type,name
TABLE=WAREHOUSE
8,int64_t,W_ID
10,string,W_NAME
20,string,W_STREET_1
20,string,W_STREET_2
20,string,W_CITY
2,string,W_STATE
9,string,W_ZIP
8,double,W_TAX
8,double,W_YTD
TABLE=DISTRICT
8,int64_t,D_ID
8,int64_t,D_W_ID
10,string,D_NAME
20,string,D_STREET_1
20,string,D_STREET_2
20,string,D_CITY
2,string,D_STATE
9,string,D_ZIP
8,double,D_TAX
8,double,D_YTD
8,int64_t,D_NEXT_O_ID
TABLE=CUSTOMER
8,int64_t,C_ID
8,int64_t,C_D_ID
8,int64_t,C_W_ID
2,string,C_MIDDLE
16,string,C_LAST
2,string,C_STATE
2,string,C_CREDIT
8,int64_t,C_DISCOUNT
8,double,C_BALANCE
8,double,C_YTD_PAYMENT
8,uint64_t,C_PAYMENT_CNT
TABLE=HISTORY
8,int64_t,H_C_ID
8,int64_t,H_C_D_ID
8,int64_t,H_C_W_ID
8,int64_t,H_D_ID
8,int64_t,H_W_ID
8,int64_t,H_DATE
8,double,H_AMOUNT
TABLE=NEW-ORDER
8,int64_t,NO_O_ID
8,int64_t,NO_D_ID
8,int64_t,NO_W_ID
TABLE=ORDER
8,int64_t,O_ID
8,int64_t,O_C_ID
8,int64_t,O_D_ID
8,int64_t,O_W_ID
8,int64_t,O_ENTRY_D
8,int64_t,O_CARRIER_ID
8,int64_t,O_OL_CNT
8,int64_t,O_ALL_LOCAL
TABLE=ORDER-LINE
8,int64_t,OL_O_ID
8,int64_t,OL_D_ID
8,int64_t,OL_W_ID
8,int64_t,OL_NUMBER
8,int64_t,OL_I_ID
TABLE=ITEM
8,int64_t,I_ID
8,int64_t,I_IM_ID
24,string,I_NAME
8,int64_t,I_PRICE
50,string,I_DATA
TABLE=STOCK
8,int64_t,S_I_ID
8,int64_t,S_W_ID
8,int64_t,S_QUANTITY
8,int64_t,S_REMOTE_CNT
INDEX=ITEM_IDX
ITEM,10000
INDEX=WAREHOUSE_IDX
WAREHOUSE,1
INDEX=DISTRICT_IDX
DISTRICT,10
INDEX=CUSTOMER_ID_IDX
CUSTOMER,40000
INDEX=CUSTOMER_LAST_IDX
CUSTOMER,40000
INDEX=STOCK_IDX
STOCK,10000