Merge pull request #1551 from jaffee/1550-topn-doc

fix topn spec and example in docs
This commit is contained in:
Matthew Jaffee 2018-07-26 09:30:01 -05:00 committed by GitHub
commit ada9857f35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,7 +419,7 @@ Count(Row(stargazer=1))
**Spec:**
```
TopN([ROW_CALL], <FIELD>, [n=UINT],
TopN(<FIELD>, [ROW_CALL], [n=UINT],
[attrName=<ATTR_NAME>, attrValues=<[]ATTR_VALUE>])
```
@ -468,7 +468,7 @@ TopN(stargazer, n=2)
Filter based on an existing row:
```request
TopN(Row(language=1), stargazer, n=2)
TopN(stargazer, Row(language=1), n=2)
```
```response
{"results":[[{"id":1240,"count":35},{"id":7508,"count":32}]]}