{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4846","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4846/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4846/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4846/events","html_url":"https://github.com/rethinkdb/rethinkdb/pull/4846","id":106688648,"number":4846,"title":"Drivers: support top-level aggregation functions","user":{"login":"marshall007","id":877936,"avatar_url":"https://avatars.githubusercontent.com/u/877936?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall007","html_url":"https://github.com/marshall007","followers_url":"https://api.github.com/users/marshall007/followers","following_url":"https://api.github.com/users/marshall007/following{/other_user}","gists_url":"https://api.github.com/users/marshall007/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall007/subscriptions","organizations_url":"https://api.github.com/users/marshall007/orgs","repos_url":"https://api.github.com/users/marshall007/repos","events_url":"https://api.github.com/users/marshall007/events{/privacy}","received_events_url":"https://api.github.com/users/marshall007/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/tp:ReQL_proposal","name":"tp:ReQL_proposal","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/110","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/2.3","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/110/labels","id":1339083,"number":110,"title":"2.3","description":"","creator":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":15,"state":"open","created_at":"2015-10-05T20:52:53Z","updated_at":"2015-12-14T23:58:01Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-16T03:03:30Z","updated_at":"2015-12-16T02:17:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/pulls/4846","html_url":"https://github.com/rethinkdb/rethinkdb/pull/4846","diff_url":"https://github.com/rethinkdb/rethinkdb/pull/4846.diff","patch_url":"https://github.com/rethinkdb/rethinkdb/pull/4846.patch"},"body":"Fixes #4594. The following are now exposed as top-level terms:\r\n\r\n- `sum`\r\n- `avg`\r\n- `min`\r\n- `max`\r\n- `distinct`\r\n\r\nNote as per discussion in #4594, these terms were not overloaded. Meaning `r.min(<expr>, <expr>)` still won't work but `r.min([<expr>, <expr>])` now will."},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/164964893","html_url":"https://github.com/rethinkdb/rethinkdb/pull/4846#issuecomment-164964893","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4846","id":164964893,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T02:17:13Z","updated_at":"2015-12-16T02:17:13Z","body":"@mlucy do you have any opinions on `r.reduce`, `r.count` and `r.group` as top-level terms?\r\n\r\nI have no objections."}}