Merge pull request #1494 from krismolendyke/patch-1

Make postAggregations example a list type.
This commit is contained in:
Nishant 2015-07-03 01:28:40 +05:30
commit e7f2cb3190
1 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ It can be used in a sample calculation as so:
{"type" : "count", "name" : "rows"},
{"type" : "hyperUnique", "name" : "unique_users", "fieldName" : "uniques"}
}],
"postAggregations" : {
"postAggregations" : [{
"type" : "arithmetic",
"name" : "average_users_per_row",
"fn" : "/",
@ -100,7 +100,7 @@ It can be used in a sample calculation as so:
{ "type" : "hyperUniqueCardinality", "fieldName" : "unique_users" },
{ "type" : "fieldAccess", "name" : "rows", "fieldName" : "rows" }
]
}
}]
```
#### Example Usage
@ -116,7 +116,7 @@ The format of the query JSON is as follows:
{ "type" : "count", "name" : "rows" },
{ "type" : "doubleSum", "name" : "tot", "fieldName" : "total" }
],
"postAggregations" : {
"postAggregations" : [{
"type" : "arithmetic",
"name" : "average",
"fn" : "*",
@ -131,7 +131,7 @@ The format of the query JSON is as follows:
},
{ "type" : "constant", "name": "const", "value" : 100 }
]
}
}]
...
}
```