mirror of https://github.com/apache/druid.git
20 lines
669 B
Plaintext
20 lines
669 B
Plaintext
{
|
|
"queryType": "groupBy",
|
|
"dataSource": "randSeq",
|
|
"granularity": "all",
|
|
"dimensions": [],
|
|
"aggregations":[
|
|
{ "type": "count", "name": "rows"},
|
|
{ "type": "doubleSum", "fieldName": "events", "name": "e"},
|
|
{ "type": "doubleSum", "fieldName": "outColumn", "name": "randomNumberSum"}
|
|
],
|
|
"postAggregations":[
|
|
{ "type":"arithmetic",
|
|
"name":"avg_random",
|
|
"fn":"/",
|
|
"fields":[ {"type":"fieldAccess","name":"randomNumberSum","fieldName":"randomNumberSum"},
|
|
{"type":"fieldAccess","name":"rows","fieldName":"rows"} ]}
|
|
],
|
|
"intervals":["2012-10-01T00:00/2020-01-01T00"]
|
|
}
|