{
"type": "index",
"spec": {
"ioConfig": {
"type": "index",
"firehose": {
"type": "local",
"baseDir": "/tmp",
"filter": "test.csv"
}
},
"dataSchema": {
"dataSource": "test2_data",
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "day",
"queryGranularity": "none",
"intervals": [
"2017-03-15/2017-03-16"
]
},
"parser": {
"type": "string",
"parseSpec": {
"format": "csv",
"timestampSpec" : {
"column" : "TestDate",
"format" : "yyyy-MM-dd'"
},
"columns": [
"TestDate",
"Region",
"id",
"Amt"
],
"dimensionsSpec": {
"dimensions": [
"Region",
"id"
]
}
}
},
"metricsSpec": [
{ "type": "count", "name": "count"},
{ "type" : "doubleSum", "name" : "TotAmt", "fieldName" : "Amt" }
]
},
"tuningConfig": {
"type": "index",
"partitionsSpec": {
"type": "hashed",
"targetPartitionSize": 5000000
},
"jobProperties": {}
}
}
}
2017-03-15,R1,1,72911.87
2017-03-15,R1,2,729118.7
2017-03-15,R1,3,7291187.0
2017-03-15,R1,4,72911870
2017-03-15,R2,0,729118
2017-03-15,R2,1,729118
2017-03-15,R2,2,729118
2017-03-15,R2,3,729118
2017-03-15,R2,4,729118
2017-03-15,R2,5,729118
2017-03-15,R2,6,729118
2017-03-15,R2,7,729118
2017-03-15,R2,8,729118
2017-03-15,R2,9,729118
┌────────┬────┬───────────────┐
│ Region │ id │ TotAmt │
├────────┼────┼───────────────┤
│ R1 │ 1 │ 72911.8671875 │
│ R1 │ 2 │ 729118.6875 │
│ R1 │ 3 │ 7291187 │
│ R1 │ 4 │ 72911872 │
│ R2 │ 0 │ 72911800 │
│ R2 │ 1 │ 72911800 │
│ R2 │ 2 │ 72911800 │
│ R2 │ 3 │ 72911800 │
│ R2 │ 4 │ 72911800 │
│ R2 │ 5 │ 72911800 │
│ R2 │ 6 │ 72911800 │
│ R2 │ 7 │ 72911800 │
│ R2 │ 8 │ 72911800 │
│ R2 │ 9 │ 72911800 │
└────────┴────┴───────────────┘
┌────────┬───────────┐
│ Region │ TotAmt │
├────────┼───────────┤
│ R1 │ 81005088 │
│ R2 │ 729118016 │
└────────┴───────────┘