Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Size:
< 1K
ArXiv:
License:
rishabh-ranjan commited on
Commit
2b8ca4f
·
verified ·
1 Parent(s): f87fcc2

Add ctu-tpcc

Browse files
ctu-tpcc/README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - relbench
4
+ - relational-deep-learning
5
+ pretty_name: ctu-tpcc
6
+ ---
7
+
8
+ # ctu-tpcc
9
+
10
+ TPC-C is the benchmark published by the Transaction Processing Performance Council (TPC) for Online Transaction Processing (OLTP). Sourced from the CTU Prague Relational Learning Repository (https://relational.fel.cvut.cz/).
11
+
12
+ ## Schema
13
+
14
+ ![schema diagram](schema.svg)
15
+
16
+ Open [`schema.svg`](schema.svg) for a zoomable view: each table lists all of its columns and types, with primary keys, foreign keys, and the foreign-key edges between tables.
17
+
18
+ Splits: validation `2262-04-11`, test `2262-04-11` (rows up to a split's timestamp are the inputs for that split).
19
+
20
+ ## Tasks
21
+
22
+ | task | kind | type | description |
23
+ |---|---|---|---|
24
+ | `tpcc-original` | external | binary_classification | Predict the binary `c_credit` label of each `C_Customer`. (random split) |
25
+
26
+ ## Loading
27
+
28
+ ```python
29
+ import relbench
30
+ ds = relbench.load_dataset("ctu-tpcc")
31
+ task = relbench.load_task("ctu-tpcc", "<task>")
32
+ ```
33
+
34
+ Manifest layout (`manifest.yaml` + plain parquet); see the RelBench [CONTRIBUTING guide](https://github.com/snap-stanford/relbench/blob/main/CONTRIBUTING.md).
ctu-tpcc/db/C_Customer.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:926b591686562bc155b8441c4d91764d37d2ba37fc45cffe1ea27feae653696e
3
+ size 15177740
ctu-tpcc/db/C_District.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed6c78d4b5ab9946315d5861eee056bd289a9ba89e47d4fc1039f0e983e22aa0
3
+ size 8827
ctu-tpcc/db/C_History.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:940b13e085cf9e7e6bbef50e106f0904b9a8a1ba6e69b28f65847a3266b0be4b
3
+ size 1037484
ctu-tpcc/db/C_Item.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf3e2f67cd4068eabf1fe777a9aba955342d59cf03aa60221ee77386e6b14c1c
3
+ size 7751694
ctu-tpcc/db/C_New_Order.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8927db326b4ee21ad79de0d0675f7c53fcae041417a2373d4c36991eccea28df
3
+ size 115018
ctu-tpcc/db/C_Order.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84784abefa33c65229678209517204687237d0760699c11ecdfb9e84bac2a66b
3
+ size 423518
ctu-tpcc/db/C_Order_Line.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbf25cd6cb525db8d6f2b1b91085b1a2d341dbae667aa8549ef6c190445995a8
3
+ size 11035639
ctu-tpcc/db/C_Stock.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3ef2b9b98acc500ff65dfd11379e6093a10c688a2c0041651b035c710dd0f8d
3
+ size 31219263
ctu-tpcc/db/C_Warehouse.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5b9957781822f86f36ce204b14c9541ae2f11e329372c4e3729d0b5e62e2f2e
3
+ size 6030
ctu-tpcc/manifest.yaml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ctu-tpcc
2
+ manifest_version: 1
3
+ description: TPC-C is the benchmark published by the Transaction Processing Performance Council (TPC) for Online Transaction Processing (OLTP). Sourced from the CTU Prague Relational Learning Repository (https://relational.fel.cvut.cz/).
4
+ val_timestamp: '2262-04-11'
5
+ test_timestamp: '2262-04-11'
6
+ tables:
7
+ C_New_Order:
8
+ pkey: __PK__
9
+ time_col: null
10
+ fkeys:
11
+ FK_C_Order_no_o_id_no_d_id_no_w_id: C_Order
12
+ C_Order:
13
+ pkey: __PK__
14
+ time_col: null
15
+ fkeys:
16
+ FK_C_Customer_o_d_id_o_c_id_o_w_id: C_Customer
17
+ C_Stock:
18
+ pkey: __PK__
19
+ time_col: null
20
+ fkeys:
21
+ FK_C_Item_s_i_id: C_Item
22
+ FK_C_Warehouse_s_w_id: C_Warehouse
23
+ C_Order_Line:
24
+ pkey: __PK__
25
+ time_col: null
26
+ fkeys:
27
+ FK_C_Order_ol_o_id_ol_d_id_ol_w_id: C_Order
28
+ FK_C_Stock_ol_i_id_ol_supply_w_id: C_Stock
29
+ C_Warehouse:
30
+ pkey: __PK__
31
+ time_col: null
32
+ fkeys: {}
33
+ C_Customer:
34
+ pkey: __PK__
35
+ time_col: null
36
+ fkeys:
37
+ FK_C_District_c_d_id: C_District
38
+ C_District:
39
+ pkey: __PK__
40
+ time_col: null
41
+ fkeys:
42
+ FK_C_Warehouse_d_w_id: C_Warehouse
43
+ C_Item:
44
+ pkey: __PK__
45
+ time_col: null
46
+ fkeys: {}
47
+ C_History:
48
+ pkey: __PK__
49
+ time_col: null
50
+ fkeys:
51
+ FK_C_Customer_h_c_id_h_c_d_id_h_c_w_id: C_Customer
52
+ FK_C_District_h_d_id_h_w_id: C_District
ctu-tpcc/schema.svg ADDED
ctu-tpcc/tasks/tpcc-original/manifest.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ name: tpcc-original
2
+ kind: external
3
+ task_type: binary_classification
4
+ description: Predict the binary `c_credit` label of each `C_Customer`. (random split)
5
+ entity_table: C_Customer
6
+ entity_col: __PK__
7
+ target_col: c_credit
8
+ timedelta: 0 days
9
+ manifest_version: 1
ctu-tpcc/tasks/tpcc-original/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b0971a23a5f61a1ccfb1f79b3ee734d687b0d43a5e01a92e8f8d842a48d1879
3
+ size 18875
ctu-tpcc/tasks/tpcc-original/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8361de33e030b8f310b58be46d6e347b820cb21833ab3c0ffd83e44f67712b99
3
+ size 149065
ctu-tpcc/tasks/tpcc-original/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13274aff7e8e70c25db1d6b98921a8932239ba19676ed1f0cc2d63f5148dd3a5
3
+ size 19182