{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9446","labels_url":"https://api.github.com/repos/apache/spark/issues/9446/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9446/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9446/events","html_url":"https://github.com/apache/spark/pull/9446","id":114919084,"number":9446,"title":"[SPARK-11489][SQL] Only include common first order statistics in GroupedData","user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-03T21:53:52Z","updated_at":"2015-11-03T22:16:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9446","html_url":"https://github.com/apache/spark/pull/9446","diff_url":"https://github.com/apache/spark/pull/9446.diff","patch_url":"https://github.com/apache/spark/pull/9446.patch"},"body":"We added a bunch of higher order statistics such as skewness and kurtosis to GroupedData. I don't think they are common enough to justify being listed, since users can always use the normal statistics aggregate functions.\r\n\r\nThat is to say, after this change, we won't support\r\n```scala\r\ndf.groupBy(\"key\").kurtosis(\"colA\", \"colB\")\r\n```\r\n\r\nHowever, we will still support\r\n```scala\r\ndf.groupBy(\"key\").agg(kurtosis(col(\"colA\")), kurtosis(col(\"colB\")))\r\n```"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/153506641","html_url":"https://github.com/apache/spark/pull/9446#issuecomment-153506641","issue_url":"https://api.github.com/repos/apache/spark/issues/9446","id":153506641,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:16:24Z","updated_at":"2015-11-03T22:16:24Z","body":"**[Test build #44963 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/44963/consoleFull)** for PR 9446 at commit [`132ea9a`](https://github.com/apache/spark/commit/132ea9a1769bbaf1d0e0c662d26a947ef34dd73f)."}}