{ | |
"type": "index_parallel", | |
"spec": { | |
"ioConfig": { | |
"type": "index_parallel", | |
"inputSource": { | |
"type": "inline", | |
"data": "{\"t\":\"2000-01-01T10:51:45.695Z\",\"m1\":\"1.0\",\"m2\":\"1.0\",\"dim1\":\"\",\"dim2\":[\"a\"],\"dim3\":[\"a\",\"b\"]}\n{\"t\":\"2000-01-18T10:51:45.695Z\",\"m1\":\"2.0\",\"m2\":\"2.0\",\"dim1\":\"10.1\",\"dim2\":[],\"dim3\":[\"b\",\"c\"]}" | |
}, | |
"inputFormat": { | |
"type": "json" | |
} | |
}, | |
"tuningConfig": { | |
"type": "index_parallel", | |
"partitionsSpec": { | |
"type": "dynamic" | |
} | |
}, | |
"dataSchema": { | |
"dataSource": "foo4", | |
"granularitySpec": { | |
"type": "uniform", | |
"queryGranularity": "HOUR", | |
"rollup": true, | |
"segmentGranularity": "YEAR" | |
}, | |
"timestampSpec": { | |
"column": "t", | |
"format": "iso" | |
}, | |
"dimensionsSpec": { | |
"dimensions": [ | |
"dim2", | |
"dim3" | |
] | |
}, | |
"metricsSpec": [ | |
{ | |
"name": "m1", | |
"type": "floatSum", | |
"fieldName": "m1" | |
}, | |
{ | |
"name": "m2", | |
"type": "doubleSum", | |
"fieldName": "m2" | |
} | |
] | |
} | |
} | |
} |