-
Notifications
You must be signed in to change notification settings - Fork 15
/
lineitem.task.json
91 lines (91 loc) · 1.93 KB
/
lineitem.task.json
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
{
"type" : "index_hadoop",
"hadoopCoordinates":"org.apache.hadoop:hadoop-core:0.20.205-emr",
"config": {
"dataSource" : "tpch_lineitem",
"timestampSpec" : {
"column": "l_shipdate",
"format": "yyyy-MM-dd"
},
"dataSpec": {
"format": "tsv",
"delimiter": "|",
"columns": [
"l_orderkey",
"l_partkey",
"l_suppkey",
"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"
],
"dimensions" : [
"l_orderkey",
"l_partkey",
"l_suppkey",
"l_linenumber",
"l_returnflag",
"l_linestatus",
"l_shipdate",
"l_commitdate",
"l_receiptdate",
"l_shipinstruct",
"l_shipmode",
"l_comment"
]
},
"granularitySpec": {
"type": "uniform",
"intervals": [
"1980/2020"
],
"gran": "month"
},
"partitionsSpec": {
"type": "random",
"targetPartitionSize": 5000000
},
"pathSpec": {
"type": "static",
"paths": "s3:\/\/path\/to\/tpch\/data\/lineitem.tbl.*.gz"
},
"rollupSpec": {
"aggs": [
{
"type": "count",
"name": "count"
},
{
"type": "longSum",
"fieldName": "L_QUANTITY",
"name": "L_QUANTITY"
},
{
"type": "doubleSum",
"fieldName": "L_EXTENDEDPRICE",
"name": "L_EXTENDEDPRICE"
},
{
"type": "doubleSum",
"fieldName": "L_DISCOUNT",
"name": "L_DISCOUNT"
},
{
"type": "doubleSum",
"fieldName": "L_TAX",
"name": "L_TAX"
}
],
"rollupGranularity": "day"
}
}
}