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