druid/examples/rand/query.body

20 lines
651 B
Plaintext
Raw Normal View History

2012-10-24 03:39:51 -04:00
{
2012-10-24 04:51:32 -04:00
"queryType": "groupBy",
2012-10-24 03:39:51 -04:00
"dataSource": "randSeq",
"granularity": "all",
2012-10-24 04:51:32 -04:00
"dimensions": [],
2012-10-24 03:39:51 -04:00
"aggregations":[
{ "type": "count", "name": "rows"},
{ "type": "doubleSum", "fieldName": "events", "name": "e"},
{ "type": "doubleSum", "fieldName": "outColumn", "name": "randomNumberSum"}
],
"postAggregations":[
2012-10-24 04:51:32 -04:00
{ "type":"arithmetic",
"name":"avg_random",
"fn":"/",
"fields":[ {"type":"fieldAccess","name":"randomNumberSum","fieldName":"randomNumberSum"},
{"type":"fieldAccess","name":"rows","fieldName":"rows"} ]}
2012-10-24 03:39:51 -04:00
],
"intervals":["2012-10-01T00:00/2020-01-01T00"]
}